[mtv] Return a proper playlist result (#4254)
authorPhilipp Hagemeister <phihag@phihag.de>
Thu, 20 Nov 2014 15:25:19 +0000 (16:25 +0100)
committerPhilipp Hagemeister <phihag@phihag.de>
Thu, 20 Nov 2014 15:25:19 +0000 (16:25 +0100)
youtube_dl/extractor/mtv.py

index 474bdff7dcd50712b20c0cf1a70e20f960e0b1be..5f0f476b690579dbbc0aeb03171982944270409f 100644 (file)
@@ -145,7 +145,8 @@ class MTVServicesInfoExtractor(InfoExtractor):
         idoc = self._download_xml(
             feed_url + '?' + data, video_id,
             'Downloading info', transform_source=fix_xml_ampersands)
-        return [self._get_video_info(item) for item in idoc.findall('.//item')]
+        return self.playlist_result(
+            [self._get_video_info(item) for item in idoc.findall('.//item')])
 
     def _real_extract(self, url):
         title = url_basename(url)