mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-08-21 13:54:22 -07:00
[brightcove] Encode object_str with utf-8
This commit is contained in:
parent
f659951e22
commit
0479c625a4
2 changed files with 12 additions and 1 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue