mirror of
https://codeberg.org/polarisfm/youtube-dl.git
synced 2024-12-26 01:26:45 +00:00
[brightcove] The ‘id’ attribute is not always present in the object tag (fixes #2132)
It looks like the ‘flashId’ parameter is not needed.
This commit is contained in:
parent
f8b5ab8cfa
commit
db22af36ec
1 changed files with 3 additions and 3 deletions
|
@ -86,7 +86,7 @@ class BrightcoveIE(InfoExtractor):
|
||||||
|
|
||||||
object_doc = xml.etree.ElementTree.fromstring(object_str)
|
object_doc = xml.etree.ElementTree.fromstring(object_str)
|
||||||
assert 'BrightcoveExperience' in object_doc.attrib['class']
|
assert 'BrightcoveExperience' in object_doc.attrib['class']
|
||||||
params = {'flashID': object_doc.attrib['id'],
|
params = {
|
||||||
'playerID': find_xpath_attr(object_doc, './param', 'name', 'playerID').attrib['value'],
|
'playerID': find_xpath_attr(object_doc, './param', 'name', 'playerID').attrib['value'],
|
||||||
}
|
}
|
||||||
def find_param(name):
|
def find_param(name):
|
||||||
|
|
Loading…
Reference in a new issue