From db22af36eced51efdd59ad71cb2220382c58817b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Fri, 10 Jan 2014 19:39:42 +0100 Subject: [PATCH] =?UTF-8?q?[brightcove]=20The=20=E2=80=98id=E2=80=99=20att?= =?UTF-8?q?ribute=20is=20not=20always=20present=20in=20the=20object=20tag?= =?UTF-8?q?=20(fixes=20#2132)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It looks like the ‘flashId’ parameter is not needed. --- youtube_dl/extractor/brightcove.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py index 4ba3f7c42..8ac38f4aa 100644 --- a/youtube_dl/extractor/brightcove.py +++ b/youtube_dl/extractor/brightcove.py @@ -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: