Browse Source

[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.
totalwebcasting
Jaime Marquínez Ferrándiz 10 years ago
parent
commit
47a8b7c14a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      youtube_dl/extractor/mdr.py

+ 1
- 1
youtube_dl/extractor/mdr.py View File

@ -29,7 +29,7 @@ class MDRIE(InfoExtractor):
doc = self._download_xml(domain + xmlurl, video_id)
formats = []
for a in doc.findall('./assets/asset'):
url_el = a.find('.//progressiveDownloadUrl')
url_el = a.find('./progressiveDownloadUrl')
if url_el is None:
continue
abr = int(a.find('bitrateAudio').text) // 1000


Loading…
Cancel
Save