[brightcove:new] update embed_in_page embeds regex to match non numeric ref id
authorremitamine <remitamine@gmail.com>
Tue, 15 Mar 2016 21:50:43 +0000 (22:50 +0100)
committerremitamine <remitamine@gmail.com>
Tue, 15 Mar 2016 21:50:43 +0000 (22:50 +0100)
youtube_dl/extractor/brightcove.py

index 86de5b9eeb3f2cd6412c8ef7fb013995568a81fa..b182edb26b4db6e42340e15706dd984106d790d8 100644 (file)
@@ -425,7 +425,7 @@ class BrightcoveNewIE(InfoExtractor):
                 # According to [4] data-video-id may be prefixed with ref:
                 r'''(?sx)
                     <video[^>]+
-                        data-video-id=["\']((?:ref:)?\d+)["\'][^>]*>.*?
+                        data-video-id=["\'](\d+|ref:[^"\']+)["\'][^>]*>.*?
                     </video>.*?
                     <script[^>]+
                         src=["\'](?:https?:)?//players\.brightcove\.net/