A feature-rich command-line audio/video downloader
[brightcove:embedinpage] Rename extractor to brightcove new
Sergey M․5c17f0a67a3a
diff --git a/youtube_dl/extractor/__init__.py b/youtube_dl/extractor/__init__.pyindex 8a0f76d7ec..64ce3210b3 100644--- a/youtube_dl/extractor/__init__.py+++ b/youtube_dl/extractor/__init__.py@@ -62,7 +62,7 @@ from .br import BRIEfrom .breakcom import BreakIEfrom .brightcove import (BrightcoveLegacyIE,- BrightcoveInPageEmbedIE,+ BrightcoveNewIE,)from .buzzfeed import BuzzFeedIEfrom .byutv import BYUtvIEdiff --git a/youtube_dl/extractor/brightcove.py b/youtube_dl/extractor/brightcove.pyindex 4dbc2e975e..5aca0b3782 100644--- a/youtube_dl/extractor/brightcove.py+++ b/youtube_dl/extractor/brightcove.py@@ -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',diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.pyindex 8f99dd9b18..0797e1a900 100644--- a/youtube_dl/extractor/generic.py+++ b/youtube_dl/extractor/generic.py@@ -32,7 +32,7 @@ from ..utils import ()from .brightcove import (BrightcoveLegacyIE,- BrightcoveInPageEmbedIE,+ BrightcoveNewIE,)from .nbc import NBCSportsVPlayerIEfrom .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')