]> gitweb @ CieloNegro.org - youtube-dl.git/blobdiff - youtube_dl/extractor/mtv.py
Use the new '_download_xml' helper in more extractors
[youtube-dl.git] / youtube_dl / extractor / mtv.py
index 04afd6c4c86233512d9e42f0493f5d7a0a7b00b0..42aee58befdbe9e0e73a72dfefddd30a7c7cbd81 100644 (file)
@@ -109,9 +109,8 @@ class MTVIE(InfoExtractor):
     def _get_videos_info(self, uri):
         video_id = self._id_from_uri(uri)
         data = compat_urllib_parse.urlencode({'uri': uri})
-        infoXml = self._download_webpage(self._FEED_URL +'?' + data, video_id,
+        idoc = self._download_xml(self._FEED_URL +'?' + data, video_id,
                                          u'Downloading info')
-        idoc = xml.etree.ElementTree.fromstring(infoXml.encode('utf-8'))
         return [self._get_video_info(item) for item in idoc.findall('.//item')]
 
     def _real_extract(self, url):