projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8abbf43
)
[brightcove] Fix more broken XML (#1608)
author
Philipp Hagemeister
<phihag@phihag.de>
Wed, 16 Oct 2013 22:46:11 +0000
(
00:46
+0200)
committer
Philipp Hagemeister
<phihag@phihag.de>
Wed, 16 Oct 2013 22:46:11 +0000
(
00:46
+0200)
youtube_dl/extractor/brightcove.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/brightcove.py
b/youtube_dl/extractor/brightcove.py
index 745212f2fe731bf305e56e8087089c65efabbd68..58f3d9708a51a3038280409d10ca00473d627213 100644
(file)
--- a/
youtube_dl/extractor/brightcove.py
+++ b/
youtube_dl/extractor/brightcove.py
@@
-53,6
+53,8
@@
class BrightcoveIE(InfoExtractor):
# Fix up some stupid HTML, see https://github.com/rg3/youtube-dl/issues/1553
object_str = re.sub(r'(<param name="[^"]+" value="[^"]+")>',
lambda m: m.group(1) + '/>', object_str)
+ # Fix up some stupid XML, see https://github.com/rg3/youtube-dl/issues/1608
+ object_str = object_str.replace(u'<--', u'<!--')
object_doc = xml.etree.ElementTree.fromstring(object_str)
assert u'BrightcoveExperience' in object_doc.attrib['class']