Remove the compatibility code used before the new format system was implemented
[youtube-dl] / youtube_dl / extractor / mtv.py
index 42aee58befdbe9e0e73a72dfefddd30a7c7cbd81..972336782f3f4c7444d96109024faff5ebe81408 100644 (file)
@@ -93,7 +93,7 @@ class MTVIE(InfoExtractor):
         else:
             description = None
 
-        info = {
+        return {
             'title': itemdoc.find('title').text,
             'formats': self._extract_video_formats(mediagen_page),
             'id': video_id,
@@ -101,11 +101,6 @@ class MTVIE(InfoExtractor):
             'description': description,
         }
 
-        # TODO: Remove when #980 has been merged
-        info.update(info['formats'][-1])
-
-        return info
-
     def _get_videos_info(self, uri):
         video_id = self._id_from_uri(uri)
         data = compat_urllib_parse.urlencode({'uri': uri})