[brightcove] The ‘id’ attribute is not always present in the object tag (fixes #2132)
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 10 Jan 2014 18:39:42 +0000 (19:39 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 10 Jan 2014 18:39:42 +0000 (19:39 +0100)
It looks like the ‘flashId’ parameter is not needed.

youtube_dl/extractor/brightcove.py

index 4ba3f7c4200169145fd03ff44f3af3c753f47c74..8ac38f4aa71e1fe63e51e1267f4a80919431621f 100644 (file)
@@ -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: