xpath_text,
)
from .brightcove import (
- BrightcoveIE,
- BrightcoveInPageEmbedIE,
+ BrightcoveLegacyIE,
+ BrightcoveNewIE,
)
from .nbc import NBCSportsVPlayerIE
from .ooyala import OoyalaIE
return self.playlist_result(
urlrs, playlist_id=video_id, playlist_title=video_title)
- # Look for BrightCove:
- bc_urls = BrightcoveIE._extract_brightcove_urls(webpage)
+ # Look for Brightcove Legacy Studio embeds
+ bc_urls = BrightcoveLegacyIE._extract_brightcove_urls(webpage)
if bc_urls:
self.to_screen('Brightcove video detected.')
entries = [{
'entries': entries,
}
- # Look for Brightcove In Page Embed:
- brightcove_in_page_embed_url = BrightcoveInPageEmbedIE._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(