Browse Source

[brightcove] match only video elements with data-video-id attribute

master
Remita Amine 7 years ago
parent
commit
ffbc8386b9
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/brightcove.py

2
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/

Loading…
Cancel
Save