[brightcove:embedinpage] Rename extractor to brightcove new
authorSergey M․ <dstftw@gmail.com>
Fri, 13 Nov 2015 23:55:59 +0000 (05:55 +0600)
committerSergey M․ <dstftw@gmail.com>
Fri, 13 Nov 2015 23:55:59 +0000 (05:55 +0600)
It's not actually embed_in_page but "New Studio" and allows both iframe and embed_in_page embeds

youtube_dl/extractor/__init__.py
youtube_dl/extractor/brightcove.py
youtube_dl/extractor/generic.py

index 8a0f76d7ec90c2f226d2cbf34fb3b5c2439c0767..64ce3210b3de17f950a52dac94a78f34a20c4a94 100644 (file)
@@ -62,7 +62,7 @@ from .br import BRIE
 from .breakcom import BreakIE
 from .brightcove import (
     BrightcoveLegacyIE,
-    BrightcoveInPageEmbedIE,
+    BrightcoveNewIE,
 )
 from .buzzfeed import BuzzFeedIE
 from .byutv import BYUtvIE
index 4dbc2e975e870c17046930694d339418b413930b..5aca0b3782f68c92f27cf262b621850ae312411b 100644 (file)
@@ -353,7 +353,7 @@ class BrightcoveLegacyIE(InfoExtractor):
         return info
 
 
-class BrightcoveInPageEmbedIE(InfoExtractor):
+class BrightcoveNewIE(InfoExtractor):
     _VALID_URL = r'https?://players\.brightcove\.net/(?P<account_id>\d+)/(?P<player_id>[^/]+)_(?P<embed>[^/]+)/index\.html\?.*videoId=(?P<video_id>\d+)'
     _TEST = {
         'url': 'http://players.brightcove.net/929656772001/e41d32dc-ec74-459e-a845-6c69f7b724ea_default/index.html?videoId=4463358922001',
index 8f99dd9b186feb3f47ad06fdf6412f215ec9eb42..0797e1a90098f8bd96da825045d7534ccf7bfed6 100644 (file)
@@ -32,7 +32,7 @@ from ..utils import (
 )
 from .brightcove import (
     BrightcoveLegacyIE,
-    BrightcoveInPageEmbedIE,
+    BrightcoveNewIE,
 )
 from .nbc import NBCSportsVPlayerIE
 from .ooyala import OoyalaIE
@@ -1322,7 +1322,7 @@ class GenericIE(InfoExtractor):
             }
 
         # Look for Brightcove In Page Embed:
-        brightcove_in_page_embed_url = BrightcoveInPageEmbedIE._extract_url(webpage)
+        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')