diff options
author | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-07-11 00:25:38 +0200 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com> | 2013-07-11 00:25:38 +0200 |
commit | 117adb0f0f14766189b3e2f635462990637d1274 (patch) | |
tree | 5c3f4656cef88f295546ac42f8c461e2a798a6cb /youtube_dl/extractor/brightcove.py | |
parent | abb285fb1b36ebe226e4f757271545d9a1132160 (diff) |
GenericIE: detect more Brightcove videos
In some sites "class" contains more that BrightcoveExperience
Diffstat (limited to 'youtube_dl/extractor/brightcove.py')
-rw-r--r-- | youtube_dl/extractor/brightcove.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py index 125c8a667..68ee5292b 100644 --- a/youtube_dl/extractor/brightcove.py +++ b/youtube_dl/extractor/brightcove.py @@ -22,7 +22,7 @@ class BrightcoveIE(InfoExtractor): <object class="BrightcoveExperience">{params}</object> """ object_doc = xml.etree.ElementTree.fromstring(object_str) - assert object_doc.attrib['class'] == u'BrightcoveExperience' + assert u'BrightcoveExperience' in object_doc.attrib['class'] params = {'flashID': object_doc.attrib['id'], 'playerID': object_doc.find('./param[@name="playerID"]').attrib['value'], } |