Use a dictionary for storing the subtitles
[youtube-dl] / youtube_dl / extractor / metacafe.py
index d1db26705ddcd7897b4b8f8a87f0cd4168b82044..e38dc98b4c2702be6b488e2e516e1a6ea95c9d8d 100644 (file)
@@ -37,7 +37,7 @@ class MetacafeIE(InfoExtractor):
         u"file": u"an-dVVXnuY7Jh77J.mp4",
         u"info_dict": {
             u"title": u"The Andromeda Strain (1971): Stop the Bomb Part 3",
-            u"uploader": u"AnyClip",
+            u"uploader": u"anyclip",
             u"description": u"md5:38c711dd98f5bb87acf973d573442e67"
         }
     }]
@@ -125,7 +125,8 @@ class MetacafeIE(InfoExtractor):
                 r'submitter=(.*?);|googletag\.pubads\(\)\.setTargeting\("channel","([^"]+)"\);',
                 webpage, u'uploader nickname', fatal=False)
 
-        return [{
+        return {
+            '_type':    'video',
             'id':       video_id,
             'url':      video_url,
             'description': description,
@@ -133,4 +134,4 @@ class MetacafeIE(InfoExtractor):
             'upload_date':  None,
             'title':    video_title,
             'ext':      video_ext,
-        }]
+        }