1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-06-29 12:41:20 +02:00

[brightcove] Use compat_xml_parse_error (Closes #6060)

This commit is contained in:
Sergey M․ 2015-06-23 21:34:29 +06:00
parent 255f5694aa
commit e20d0c1e69

View File

@ -13,6 +13,7 @@
compat_urllib_parse_urlparse,
compat_urllib_request,
compat_urlparse,
compat_xml_parse_error,
)
from ..utils import (
determine_ext,
@ -119,7 +120,7 @@ def _build_brighcove_url(cls, object_str):
try:
object_doc = xml.etree.ElementTree.fromstring(object_str.encode('utf-8'))
except xml.etree.ElementTree.ParseError:
except compat_xml_parse_error:
return
fv_el = find_xpath_attr(object_doc, './param', 'name', 'flashVars')