mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-03 19:17:06 -05: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:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user