[generic] Extract Brightcove New Studio embeds
authorSergey M․ <dstftw@gmail.com>
Sat, 14 Nov 2015 00:03:07 +0000 (06:03 +0600)
committerSergey M․ <dstftw@gmail.com>
Sat, 14 Nov 2015 00:03:07 +0000 (06:03 +0600)
youtube_dl/extractor/generic.py

index 0797e1a90098f8bd96da825045d7534ccf7bfed6..334864db3540a26769216d42e2bd4b5fa82dde33 100644 (file)
@@ -1321,10 +1321,10 @@ class GenericIE(InfoExtractor):
                 'entries': entries,
             }
 
-        # Look for Brightcove In Page Embed:
-        brightcove_in_page_embed_url = BrightcoveNewIE._extract_url(webpage)
-        if brightcove_in_page_embed_url:
-            return self.url_result(brightcove_in_page_embed_url, 'BrightcoveInPageEmbed')
+        # Look for Brightcove New Studio embeds
+        bc_urls = BrightcoveNewIE._extract_urls(webpage)
+        if bc_urls:
+            return _playlist_from_matches(bc_urls, ie='BrightcoveNew')
 
         # Look for embedded rtl.nl player
         matches = re.findall(