mirror of
				https://gitlab.com/ytdl-org/youtube-dl.git
				synced 2025-11-04 07:17:07 -05:00 
			
		
		
		
	[faz] Future-proof XML element check
This commit is contained in:
		@@ -52,7 +52,7 @@ class FazIE(InfoExtractor):
 | 
			
		||||
        formats = []
 | 
			
		||||
        for pref, code in enumerate(['LOW', 'HIGH', 'HQ']):
 | 
			
		||||
            encoding = xpath_element(encodings, code)
 | 
			
		||||
            if encoding:
 | 
			
		||||
            if encoding is not None:
 | 
			
		||||
                encoding_url = xpath_text(encoding, 'FILENAME')
 | 
			
		||||
                if encoding_url:
 | 
			
		||||
                    formats.append({
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user