mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[downloader/f4m] Decode manifest before fixing
This commit is contained in:
		| @@ -292,7 +292,7 @@ class F4mFD(FragmentFD): | |||||||
|         # Some manifests may be malformed, e.g. prosiebensat1 generated manifests |         # Some manifests may be malformed, e.g. prosiebensat1 generated manifests | ||||||
|         # (see https://github.com/rg3/youtube-dl/issues/6215#issuecomment-121704244 |         # (see https://github.com/rg3/youtube-dl/issues/6215#issuecomment-121704244 | ||||||
|         # and https://github.com/rg3/youtube-dl/issues/7823) |         # and https://github.com/rg3/youtube-dl/issues/7823) | ||||||
|         manifest = fix_xml_ampersands(urlh.read()).strip() |         manifest = fix_xml_ampersands(urlh.read().decode('utf-8', 'ignore')).strip() | ||||||
|  |  | ||||||
|         doc = compat_etree_fromstring(manifest) |         doc = compat_etree_fromstring(manifest) | ||||||
|         formats = [(int(f.attrib.get('bitrate', -1)), f) |         formats = [(int(f.attrib.get('bitrate', -1)), f) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․