aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-06-23 21:34:29 +0600
committerSergey M․ <dstftw@gmail.com>2015-06-23 21:34:29 +0600
commite20d0c1e69f66a82dd493680351538ea92393fd0 (patch)
treebd8f6b012625d0c6a6f0594b7d1eb3acb302f7cc
parent255f5694aabe07fa7f33978c6b97ced469e172db (diff)
downloadyoutube-dl-e20d0c1e69f66a82dd493680351538ea92393fd0.zip
youtube-dl-e20d0c1e69f66a82dd493680351538ea92393fd0.tar.gz
youtube-dl-e20d0c1e69f66a82dd493680351538ea92393fd0.tar.bz2
[brightcove] Use `compat_xml_parse_error` (Closes #6060)
-rw-r--r--youtube_dl/extractor/brightcove.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py
index d768f99..4721c22 100644
--- a/youtube_dl/extractor/brightcove.py
+++ b/youtube_dl/extractor/brightcove.py
@@ -13,6 +13,7 @@ from ..compat import (
compat_urllib_parse_urlparse,
compat_urllib_request,
compat_urlparse,
+ compat_xml_parse_error,
)
from ..utils import (
determine_ext,
@@ -119,7 +120,7 @@ class BrightcoveIE(InfoExtractor):
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')