A feature-rich command-line audio/video downloader
[brightcove] Remove the namespace from the BrightcoveExperience html object
Jaime Marquínez Ferrándizd6f714f321d4
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.pyindex a6920685e1..8d5acef14b 100644--- a/youtube_dl/extractor/brightcove.py+++ b/youtube_dl/extractor/brightcove.py@@ -111,6 +111,8 @@ class BrightcoveIE(InfoExtractor):lambda m: m.group(1) + '/>', object_str)# Fix up some stupid XML, see https://github.com/rg3/youtube-dl/issues/1608object_str = object_str.replace('<--', '<!--')+ # remove namespace to simplify extraction+ object_str = re.sub(r'(<object[^>]*)(xmlns=".*?")', r'\1', object_str)object_str = fix_xml_ampersands(object_str)object_doc = xml.etree.ElementTree.fromstring(object_str.encode('utf-8'))