]> gitweb @ CieloNegro.org - youtube-dl.git/blobdiff - youtube_dl/extractor/brightcove.py
[brightcove] match only video elements with data-video-id attribute
[youtube-dl.git] / youtube_dl / extractor / brightcove.py
index 183ac7dd00e3563dde30df01493a3f533ec68ee6..97602ca303e4543b4a31f556e526e26df21bc0b5 100644 (file)
@@ -522,7 +522,7 @@ class BrightcoveNewIE(InfoExtractor):
         # [2] looks like:
         for video, script_tag, account_id, player_id, embed in re.findall(
                 r'''(?isx)
-                    (<video\s+[^>]+>)
+                    (<video\s+[^>]*data-video-id=['"]?[^>]+>)
                     (?:.*?
                         (<script[^>]+
                             src=["\'](?:https?:)?//players\.brightcove\.net/