[brightcove] Encode object_str with utf-8

This commit is contained in:
Sergey M․ 2014-04-01 20:17:35 +07:00
commit 0479c625a4
2 changed files with 12 additions and 1 deletions

View 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: