commit: 2391941f283a1107b01f9df76a8b0e521a5abe3b
parent 9ff6165a8199488e92e8a76962f37d944e14a738
Author: Sergey M․ <dstftw@gmail.com>
Date: Tue, 16 Jun 2020 17:37:58 +0700
[brightcove] Improve embed detection (closes #25674)
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.py
@@ -426,7 +426,7 @@ class BrightcoveNewIE(AdobePassIE):
# [2] looks like:
for video, script_tag, account_id, player_id, embed in re.findall(
r'''(?isx)
- (<video\s+[^>]*\bdata-video-id\s*=\s*['"]?[^>]+>)
+ (<video(?:-js)?\s+[^>]*\bdata-video-id\s*=\s*['"]?[^>]+>)
(?:.*?
(<script[^>]+
src=["\'](?:https?:)?//players\.brightcove\.net/