]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[generic] Fix test_Generic_2
authorYen Chi Hsuan <yan12125@gmail.com>
Sat, 16 Apr 2016 11:44:12 +0000 (19:44 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Sat, 16 Apr 2016 11:44:45 +0000 (19:44 +0800)
Now a HEAD request returns 400 Bad Request

youtube_dl/extractor/generic.py

index 5b22b6b5e4568fbe60845491845c468f3606d262..518b4f9de1c49cd7884f8c590422e8249e476d20 100644 (file)
@@ -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