0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-26 02:55:17 +00:00

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

This commit is contained in:
Remita Amine 2017-04-22 22:26:20 +01:00
parent 4abdba643c
commit ffbc8386b9

View file

@ -522,7 +522,7 @@ def _extract_urls(ie, webpage):
# [2] looks like: # [2] looks like:
for video, script_tag, account_id, player_id, embed in re.findall( for video, script_tag, account_id, player_id, embed in re.findall(
r'''(?isx) r'''(?isx)
(<video\s+[^>]+>) (<video\s+[^>]*data-video-id=['"]?[^>]+>)
(?:.*? (?:.*?
(<script[^>]+ (<script[^>]+
src=["\'](?:https?:)?//players\.brightcove\.net/ src=["\'](?:https?:)?//players\.brightcove\.net/