mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +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:
		| @@ -86,9 +86,9 @@ class BrightcoveIE(InfoExtractor): | ||||
|  | ||||
|         object_doc = xml.etree.ElementTree.fromstring(object_str) | ||||
|         assert 'BrightcoveExperience' in object_doc.attrib['class'] | ||||
|         params = {'flashID': object_doc.attrib['id'], | ||||
|                   'playerID': find_xpath_attr(object_doc, './param', 'name', 'playerID').attrib['value'], | ||||
|                   } | ||||
|         params = { | ||||
|             'playerID': find_xpath_attr(object_doc, './param', 'name', 'playerID').attrib['value'], | ||||
|         } | ||||
|         def find_param(name): | ||||
|             node = find_xpath_attr(object_doc, './param', 'name', name) | ||||
|             if node is not None: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Jaime Marquínez Ferrándiz
					Jaime Marquínez Ferrándiz