commit ffbc8386b9298ef343a71bf54d7426a19755fef8
parent 4abdba643cc2d610fbbfe7ece9ee97a3df98ad33
Author: Remita Amine <remitamine@gmail.com>
Date: Sat, 22 Apr 2017 22:26:20 +0100
[brightcove] match only video elements with data-video-id attribute
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py
@@ -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/