From: Jaime Marquínez Ferrándiz Date: Mon, 3 Aug 2015 10:00:08 +0000 (+0200) Subject: [mdr] Change XPath to make it work in python 2.6 (fixes #6443) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=47a8b7c14a085ce558db3b5a85ded850cd5df642;p=youtube-dl [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. --- diff --git a/youtube_dl/extractor/mdr.py b/youtube_dl/extractor/mdr.py index 5fdd19027..fc7499958 100644 --- a/youtube_dl/extractor/mdr.py +++ b/youtube_dl/extractor/mdr.py @@ -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