projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6afc22
)
[downloader/f4m] Decode manifest before fixing
author
Sergey M․
<dstftw@gmail.com>
Fri, 11 Dec 2015 14:28:44 +0000
(20:28 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Fri, 11 Dec 2015 14:28:44 +0000
(20:28 +0600)
youtube_dl/downloader/f4m.py
patch
|
blob
|
history
diff --git
a/youtube_dl/downloader/f4m.py
b/youtube_dl/downloader/f4m.py
index 7819a91dcb2f5108b0c6690f05cc6579d2d4362c..aaf0c49c8cb474e397a71988502848ed8351336b 100644
(file)
--- 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)