[generic] Add a test case for direct links with broken HEAD (#4032)

This commit is contained in:
Philipp Hagemeister 2014-10-26 20:49:51 +01:00
parent 579657ad87
commit 70b7e3fbb6
3 changed files with 28 additions and 1 deletions

View file

@ -389,8 +389,23 @@ class GenericIE(InfoExtractor):
'title': 'Conversation about Hexagonal Rails Part 1 - ThoughtWorks',
'duration': 1715.0,
'uploader': 'thoughtworks.wistia.com',
},
},
},
# Direct download with broken HEAD
{
'url': 'http://ai-radio.org:8000/radio.opus',
'info_dict': {
'id': 'radio',
'ext': 'opus',
'title': 'radio',
},
'params': {
'skip_download': True, # infinite live stream
},
'expected_warnings': [
r'501.*Not Implemented'
],
}
]
def report_following_redirect(self, new_url):