mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-19 09:25:43 +00:00
[mdr] Change XPath to make it work in python 2.6 (fixes #6443)
The 'progressiveDownloadUrl' element is a direct child, so they should be equivalent.
This commit is contained in:
parent
2a04d2c799
commit
47a8b7c14a
@ -29,7 +29,7 @@ def _real_extract(self, url):
|
|||||||
doc = self._download_xml(domain + xmlurl, video_id)
|
doc = self._download_xml(domain + xmlurl, video_id)
|
||||||
formats = []
|
formats = []
|
||||||
for a in doc.findall('./assets/asset'):
|
for a in doc.findall('./assets/asset'):
|
||||||
url_el = a.find('.//progressiveDownloadUrl')
|
url_el = a.find('./progressiveDownloadUrl')
|
||||||
if url_el is None:
|
if url_el is None:
|
||||||
continue
|
continue
|
||||||
abr = int(a.find('bitrateAudio').text) // 1000
|
abr = int(a.find('bitrateAudio').text) // 1000
|
||||||
|
Loading…
Reference in New Issue
Block a user