projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55898ad
)
[brightcove] Fix up more generically invalid XML (Fixes #4849)
author
Philipp Hagemeister
<phihag@phihag.de>
Mon, 2 Feb 2015 22:47:14 +0000
(23:47 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Mon, 2 Feb 2015 22:47:14 +0000
(23:47 +0100)
youtube_dl/extractor/brightcove.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/brightcove.py
b/youtube_dl/extractor/brightcove.py
index 003152c4e6d6ec9880a54016870e41e42635f41c..ea0969d4d259a99653bebbcabcebb0e1f87719f3 100644
(file)
--- a/
youtube_dl/extractor/brightcove.py
+++ b/
youtube_dl/extractor/brightcove.py
@@
-108,7
+108,7
@@
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="[^"]+"
)>',
+ object_str = re.sub(r'(<param
(?:\s+[a-zA-Z0-9_]+="[^"]*")*
)>',
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('<--', '<!--')