aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-12-11 20:28:44 +0600
committerSergey M․ <dstftw@gmail.com>2015-12-11 20:28:44 +0600
commit4db43567e8833ca0eb89d694260e5640c414ca07 (patch)
treecfdfed2c0077e37d33ca86700ff1d0a18685ca4a
parentb6afc225c89e3fc70a588e5822bbb2d86705bd08 (diff)
downloadyoutube-dl-4db43567e8833ca0eb89d694260e5640c414ca07.tar.xz
[downloader/f4m] Decode manifest before fixing
-rw-r--r--youtube_dl/downloader/f4m.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/downloader/f4m.py b/youtube_dl/downloader/f4m.py
index 7819a91dc..aaf0c49c8 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)