Browse Source

[mtv] Return a proper playlist result (#4254)

totalwebcasting
Philipp Hagemeister 10 years ago
parent
commit
5239075bb6
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      youtube_dl/extractor/mtv.py

+ 2
- 1
youtube_dl/extractor/mtv.py View 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)


Loading…
Cancel
Save