projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'brightcove_in_page_embed' of https://github.com/remitamine/youtube...
[youtube-dl]
/
youtube_dl
/
extractor
/
brightcove.py
diff --git
a/youtube_dl/extractor/brightcove.py
b/youtube_dl/extractor/brightcove.py
index c6ad1d065512a138b6f4535cce577eb81238debf..2c7d968a848a2c9d4dbad8960aeac2e6f0b55cfd 100644
(file)
--- a/
youtube_dl/extractor/brightcove.py
+++ b/
youtube_dl/extractor/brightcove.py
@@
-3,10
+3,10
@@
from __future__ import unicode_literals
import re
import json
import re
import json
-import xml.etree.ElementTree
from .common import InfoExtractor
from ..compat import (
from .common import InfoExtractor
from ..compat import (
+ compat_etree_fromstring,
compat_parse_qs,
compat_str,
compat_urllib_parse,
compat_parse_qs,
compat_str,
compat_urllib_parse,
@@
-123,7
+123,7
@@
class BrightcoveIE(InfoExtractor):
object_str = fix_xml_ampersands(object_str)
try:
object_str = fix_xml_ampersands(object_str)
try:
- object_doc =
xml.etree.ElementTree.
fromstring(object_str.encode('utf-8'))
+ object_doc =
compat_etree_
fromstring(object_str.encode('utf-8'))
except compat_xml_parse_error:
return
except compat_xml_parse_error:
return