]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[brightcove] match only video elements with data-video-id attribute
authorRemita Amine <remitamine@gmail.com>
Sat, 22 Apr 2017 21:26:20 +0000 (22:26 +0100)
committerRemita Amine <remitamine@gmail.com>
Sat, 22 Apr 2017 21:26:20 +0000 (22:26 +0100)
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/