[extractor/generic] Add test for large compressed media
authorSergey M․ <dstftw@gmail.com>
Sat, 30 May 2015 20:13:24 +0000 (02:13 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 30 May 2015 20:13:24 +0000 (02:13 +0600)
youtube_dl/extractor/generic.py

index d9116ce10389d5bcba9ee816d8690eb17046c7e7..737141f954b4acf9fcacc9e4f946983f757888ca 100644 (file)
@@ -138,6 +138,20 @@ class GenericIE(InfoExtractor):
                 'upload_date': '20100513',
             }
         },
+        # Direct link to a media delivered compressed (requires Accept-Encoding == *)
+        {
+            'url': 'http://calimero.tk/muzik/FictionJunction-Parallel_Hearts.flac',
+            'md5': '128c42e68b13950268b648275386fc74',
+            'info_dict': {
+                'id': 'FictionJunction-Parallel_Hearts',
+                'ext': 'flac',
+                'title': 'FictionJunction-Parallel_Hearts',
+                'upload_date': '20140522',
+            },
+            'expected_warnings': [
+                'URL could be a direct video link, returning it as such.'
+            ]
+        },
         # ooyala video
         {
             'url': 'http://www.rollingstone.com/music/videos/norwegian-dj-cashmere-cat-goes-spartan-on-with-me-premiere-20131219',