diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-10-17 00:46:11 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-10-17 00:46:11 +0200 |
commit | 2d0efe70a684cf378c6c325eafc8e52a85321157 (patch) | |
tree | 674a7e3405ca7babc891ee9bf21ee331e26e78ae /youtube_dl/extractor/brightcove.py | |
parent | 8abbf43f21d2afcfa2db1744a3f6ccfc917cc8d7 (diff) | |
download | youtube-dl-2d0efe70a684cf378c6c325eafc8e52a85321157.zip youtube-dl-2d0efe70a684cf378c6c325eafc8e52a85321157.tar.gz youtube-dl-2d0efe70a684cf378c6c325eafc8e52a85321157.tar.bz2 |
[brightcove] Fix more broken XML (#1608)
Diffstat (limited to 'youtube_dl/extractor/brightcove.py')
-rw-r--r-- | youtube_dl/extractor/brightcove.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py index 745212f..58f3d97 100644 --- 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'] |