projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
255f569
)
[brightcove] Use `compat_xml_parse_error` (Closes #6060)
author
Sergey M․
<dstftw@gmail.com>
Tue, 23 Jun 2015 15:34:29 +0000
(21:34 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 23 Jun 2015 15:34:29 +0000
(21:34 +0600)
youtube_dl/extractor/brightcove.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/brightcove.py
b/youtube_dl/extractor/brightcove.py
index d768f99e67bd49de31e3f0df70d832284cbb3482..4721c22930f15cb51d0daaac294eeeca3a329092 100644
(file)
--- 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.ParseE
rror:
+ except
compat_xml_parse_e
rror:
return
fv_el = find_xpath_attr(object_doc, './param', 'name', 'flashVars')