1
0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-06-30 11:02:54 -05:00

[brightcove] Allow whitespace around attribute names in embedded code

This commit is contained in:
Sergey M․
2017-05-01 01:03:47 +07:00
parent 238cec17ae
commit 9edf47df7b
2 changed files with 17 additions and 1 deletions

View 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+[^>]*data-video-id=['"]?[^>]+>)
(<video\s+[^>]*\bdata-video-id\s*=\s*['"]?[^>]+>)
(?:.*?
(<script[^>]+
src=["\'](?:https?:)?//players\.brightcove\.net/