1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-08 04:02:40 +01:00

[brightcove] Improve embed detection (closes #25674)

This commit is contained in:
Sergey M․ 2020-06-16 17:37:58 +07:00
parent 9ff6165a81
commit 2391941f28
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

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