]> git.bitcoin.ninja Git - youtube-dl/commitdiff
[brightcove] Improve embed detection (closes #25674)
authorSergey M․ <dstftw@gmail.com>
Tue, 16 Jun 2020 10:37:58 +0000 (17:37 +0700)
committerSergey M․ <dstftw@gmail.com>
Tue, 16 Jun 2020 10:38:25 +0000 (17:38 +0700)
youtube_dl/extractor/brightcove.py

index 5c22a730db98b77cab1db2c5503b493b162e9c9a..2aa9f4782e0dfdb2b78225c2d1fe83a8568effe3 100644 (file)
@@ -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/