]> gitweb @ CieloNegro.org - youtube-dl.git/blobdiff - youtube_dl/extractor/brightcove.py
[youtube] feeds: Also look for the html in the 'content_html' field (fixes #2671)
[youtube-dl.git] / youtube_dl / extractor / brightcove.py
index 83eec84d3cd446b75854accd8dd8c2c754ba4349..339d60ff0f52ed31edcb77aa1b2e1d4994266a91 100644 (file)
@@ -87,7 +87,7 @@ class BrightcoveIE(InfoExtractor):
         object_str = object_str.replace('<--', '<!--')
         object_str = fix_xml_ampersands(object_str)
 
-        object_doc = xml.etree.ElementTree.fromstring(object_str)
+        object_doc = xml.etree.ElementTree.fromstring(object_str.encode('utf-8'))
 
         fv_el = find_xpath_attr(object_doc, './param', 'name', 'flashVars')
         if fv_el is not None: