mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-12-27 18:29:01 +00:00
[brightcove:embedinpage] Rename extractor to brightcove new
It's not actually embed_in_page but "New Studio" and allows both iframe and embed_in_page embeds
This commit is contained in:
parent
4fcaa4f4a5
commit
5c17f0a67a
3 changed files with 4 additions and 4 deletions
|
@ -62,7 +62,7 @@ from .br import BRIE
|
||||||
from .breakcom import BreakIE
|
from .breakcom import BreakIE
|
||||||
from .brightcove import (
|
from .brightcove import (
|
||||||
BrightcoveLegacyIE,
|
BrightcoveLegacyIE,
|
||||||
BrightcoveInPageEmbedIE,
|
BrightcoveNewIE,
|
||||||
)
|
)
|
||||||
from .buzzfeed import BuzzFeedIE
|
from .buzzfeed import BuzzFeedIE
|
||||||
from .byutv import BYUtvIE
|
from .byutv import BYUtvIE
|
||||||
|
|
|
@ -353,7 +353,7 @@ class BrightcoveLegacyIE(InfoExtractor):
|
||||||
return info
|
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+)'
|
_VALID_URL = r'https?://players\.brightcove\.net/(?P<account_id>\d+)/(?P<player_id>[^/]+)_(?P<embed>[^/]+)/index\.html\?.*videoId=(?P<video_id>\d+)'
|
||||||
_TEST = {
|
_TEST = {
|
||||||
'url': 'http://players.brightcove.net/929656772001/e41d32dc-ec74-459e-a845-6c69f7b724ea_default/index.html?videoId=4463358922001',
|
'url': 'http://players.brightcove.net/929656772001/e41d32dc-ec74-459e-a845-6c69f7b724ea_default/index.html?videoId=4463358922001',
|
||||||
|
|
|
@ -32,7 +32,7 @@ from ..utils import (
|
||||||
)
|
)
|
||||||
from .brightcove import (
|
from .brightcove import (
|
||||||
BrightcoveLegacyIE,
|
BrightcoveLegacyIE,
|
||||||
BrightcoveInPageEmbedIE,
|
BrightcoveNewIE,
|
||||||
)
|
)
|
||||||
from .nbc import NBCSportsVPlayerIE
|
from .nbc import NBCSportsVPlayerIE
|
||||||
from .ooyala import OoyalaIE
|
from .ooyala import OoyalaIE
|
||||||
|
@ -1322,7 +1322,7 @@ class GenericIE(InfoExtractor):
|
||||||
}
|
}
|
||||||
|
|
||||||
# Look for Brightcove In Page Embed:
|
# 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:
|
if brightcove_in_page_embed_url:
|
||||||
return self.url_result(brightcove_in_page_embed_url, 'BrightcoveInPageEmbed')
|
return self.url_result(brightcove_in_page_embed_url, 'BrightcoveInPageEmbed')
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue