]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[mtvservices:embedded] Improve config url (fixes #4092)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 14 Nov 2014 18:02:18 +0000 (19:02 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 14 Nov 2014 18:02:18 +0000 (19:02 +0100)
youtube_dl/extractor/mtv.py

index f0e28e66ace8a5f59093eb2c9857968bcabf2dd7..474bdff7dcd50712b20c0cf1a70e20f960e0b1be 100644 (file)
@@ -186,7 +186,8 @@ class MTVServicesEmbeddedIE(MTVServicesInfoExtractor):
     def _get_feed_url(self, uri):
         video_id = self._id_from_uri(uri)
         site_id = uri.replace(video_id, '')
-        config_url = 'http://media.mtvnservices.com/pmt/e1/players/{0}/config.xml'.format(site_id)
+        config_url = ('http://media.mtvnservices.com/pmt/e1/players/{0}/'
+            'context4/context5/config.xml'.format(site_id))
         config_doc = self._download_xml(config_url, video_id)
         feed_node = config_doc.find('.//feed')
         feed_url = feed_node.text.strip().split('?')[0]