mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-12-23 14:52:38 +00:00
[mtvservices:embedded] Update config URL
All starts from #10363. The test case in mtvservices:embedded uses config.xml, while the video from #10363 and the test case in generic.py is broken. Both uses index.html for fetching the feed URL.
This commit is contained in:
parent
55d119e2a1
commit
96229e5f95
@ -257,8 +257,8 @@ class MTVServicesEmbeddedIE(MTVServicesInfoExtractor):
|
|||||||
def _get_feed_url(self, uri):
|
def _get_feed_url(self, uri):
|
||||||
video_id = self._id_from_uri(uri)
|
video_id = self._id_from_uri(uri)
|
||||||
site_id = uri.replace(video_id, '')
|
site_id = uri.replace(video_id, '')
|
||||||
config_url = ('http://media.mtvnservices.com/pmt/e1/players/{0}/'
|
config_url = ('http://media.mtvnservices.com/pmt-arc/e1/players/{0}/'
|
||||||
'context4/context5/config.xml'.format(site_id))
|
'context52/config.xml'.format(site_id))
|
||||||
config_doc = self._download_xml(config_url, video_id)
|
config_doc = self._download_xml(config_url, video_id)
|
||||||
feed_node = config_doc.find('.//feed')
|
feed_node = config_doc.find('.//feed')
|
||||||
feed_url = feed_node.text.strip().split('?')[0]
|
feed_url = feed_node.text.strip().split('?')[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user