aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2017-04-22 22:26:20 +0100
committerRemita Amine <remitamine@gmail.com>2017-04-22 22:26:20 +0100
commitffbc8386b9298ef343a71bf54d7426a19755fef8 (patch)
tree2278a61f599ffa203fcbaf27a834b266ccf2ad69 /youtube_dl
parent4abdba643cc2d610fbbfe7ece9ee97a3df98ad33 (diff)
[brightcove] match only video elements with data-video-id attribute
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/brightcove.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py
index 183ac7dd0..97602ca30 100644
--- 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/