From: Yen Chi Hsuan Date: Sat, 16 Apr 2016 11:44:12 +0000 (+0800) Subject: [generic] Fix test_Generic_2 X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=commitdiff_plain;h=ef0e4e7bc03669fbef0cb7923a21637a71993dad;p=youtube-dl [generic] Fix test_Generic_2 Now a HEAD request returns 400 Bad Request --- diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 5b22b6b5e..518b4f9de 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -105,7 +105,8 @@ class GenericIE(InfoExtractor): 'skip_download': True, # infinite live stream }, 'expected_warnings': [ - r'501.*Not Implemented' + r'501.*Not Implemented', + r'400.*Bad Request', ], }, # Direct link with incorrect MIME type