]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[adultswim] Fix extraction (closes #10979)
authorYen Chi Hsuan <yan12125@gmail.com>
Wed, 26 Oct 2016 18:16:48 +0000 (02:16 +0800)
committerYen Chi Hsuan <yan12125@gmail.com>
Wed, 26 Oct 2016 18:16:48 +0000 (02:16 +0800)
ChangeLog
youtube_dl/extractor/adultswim.py

index 1c3b63c86987c27d1cb56539f691ead8339ba858..b4de1d35f43195fb0440e424abbfb77af15baa5e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,6 +1,7 @@
 version <unreleased>
 
 Extractors
+* [adultswim] Fix extraction (#10979)
 * [hornbunny] Fix extraction (#10981)
 
 
index 5d0bf5a68a6ce6d2658fbc5e36b2c7311c85960c..989505c8232abf53f99d0af594c84e45f8778eb0 100644 (file)
@@ -96,6 +96,27 @@ class AdultSwimIE(TurnerBaseIE):
             'skip_download': True,
         },
         'expected_warnings': ['Unable to download f4m manifest'],
+    }, {
+        'url': 'http://www.adultswim.com/videos/toonami/friday-october-14th-2016/',
+        'info_dict': {
+            'id': 'eYiLsKVgQ6qTC6agD67Sig',
+            'title': 'Toonami - Friday, October 14th, 2016',
+            'description': 'md5:99892c96ffc85e159a428de85c30acde',
+        },
+        'playlist': [{
+            'md5': '',
+            'info_dict': {
+                'id': 'eYiLsKVgQ6qTC6agD67Sig',
+                'ext': 'mp4',
+                'title': 'Toonami - Friday, October 14th, 2016',
+                'description': 'md5:99892c96ffc85e159a428de85c30acde',
+            },
+        }],
+        'params': {
+            # m3u8 download
+            'skip_download': True,
+        },
+        'expected_warnings': ['Unable to download f4m manifest'],
     }]
 
     @staticmethod
@@ -163,6 +184,8 @@ class AdultSwimIE(TurnerBaseIE):
                 segment_ids = [clip['videoPlaybackID'] for clip in video_info['clips']]
             elif video_info.get('videoPlaybackID'):
                 segment_ids = [video_info['videoPlaybackID']]
+            elif video_info.get('id'):
+                segment_ids = [video_info['id']]
             else:
                 if video_info.get('auth') is True:
                     raise ExtractorError(