[ign] Return proper playlist object
authorPhilipp Hagemeister <phihag@phihag.de>
Mon, 29 Sep 2014 03:05:06 +0000 (05:05 +0200)
committerPhilipp Hagemeister <phihag@phihag.de>
Mon, 29 Sep 2014 03:05:06 +0000 (05:05 +0200)
youtube_dl/extractor/ign.py

index 12e9e61c465cce7f30ed93d293d946ea05f4de74..c80185b535b8d9853adf886fb8b5582284d12a03 100644 (file)
@@ -89,7 +89,12 @@ class IGNIE(InfoExtractor):
                 '<param name="flashvars"[^>]*value="[^"]*?url=(https?://www\.ign\.com/videos/.*?)["&]',
                 webpage)
             if multiple_urls:
-                return [self.url_result(u, ie='IGN') for u in multiple_urls]
+                entries = [self.url_result(u, ie='IGN') for u in multiple_urls]
+                return {
+                    '_type': 'playlist',
+                    'id': name_or_id,
+                    'entries': entries,
+                }
 
         video_id = self._find_video_id(webpage)
         result = self._get_video_info(video_id)