A feature-rich command-line audio/video downloader
[downloader/f4m] Decode manifest before fixing
Sergey M․4db43567e883
diff --git a/youtube_dl/downloader/f4m.py b/youtube_dl/downloader/f4m.pyindex 7819a91dcb..aaf0c49c8c 100644--- a/youtube_dl/downloader/f4m.py+++ b/youtube_dl/downloader/f4m.py@@ -292,7 +292,7 @@ class F4mFD(FragmentFD):# Some manifests may be malformed, e.g. prosiebensat1 generated manifests# (see https://github.com/rg3/youtube-dl/issues/6215#issuecomment-121704244# 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)formats = [(int(f.attrib.get('bitrate', -1)), f)