', '', caption))
+
+ card_section = get_element_by_class('card-section', page)
+ date = self._html_search_regex('>Aired at ([^<]+)<', card_section, 'air date', fatal=False)
+
+ return {
+ 'id': episode_id,
+ 'title': join_nonempty(series, date, delim=' - '),
+ 'formats': traverse_obj(audios, (..., 'formats', ...)),
+ 'timestamp': unified_timestamp(date), # XXX: Does not account for UK's daylight savings
+ 'series': series,
+ 'description': clean_html(re.sub(r'[^<]+
]+/>', '', card_section)),
+ 'thumbnail': urljoin('https://camfm.co.uk', self._search_regex(
+ r']+class="cover-art"[^>]+style="[^"]+url\(\'([^\']+)',
+ page, 'thumbnail', fatal=False)),
+ 'categories': get_elements_by_class('label', caption),
+ 'was_live': True,
+ }
diff --git a/yt_dlp/extractor/canvas.py b/yt_dlp/extractor/canvas.py
deleted file mode 100644
index ae6e03a4d..000000000
--- a/yt_dlp/extractor/canvas.py
+++ /dev/null
@@ -1,383 +0,0 @@
-import json
-
-
-from .common import InfoExtractor
-from .gigya import GigyaBaseIE
-from ..compat import compat_HTTPError
-from ..utils import (
- ExtractorError,
- clean_html,
- extract_attributes,
- float_or_none,
- get_element_by_class,
- int_or_none,
- merge_dicts,
- str_or_none,
- strip_or_none,
- url_or_none,
- urlencode_postdata
-)
-
-
-class CanvasIE(InfoExtractor):
- _VALID_URL = r'https?://mediazone\.vrt\.be/api/v1/(?Pcanvas|een|ketnet|vrt(?:video|nieuws)|sporza|dako)/assets/(?P[^/?#&]+)'
- _TESTS = [{
- 'url': 'https://mediazone.vrt.be/api/v1/ketnet/assets/md-ast-4ac54990-ce66-4d00-a8ca-9eac86f4c475',
- 'md5': '37b2b7bb9b3dcaa05b67058dc3a714a9',
- 'info_dict': {
- 'id': 'md-ast-4ac54990-ce66-4d00-a8ca-9eac86f4c475',
- 'display_id': 'md-ast-4ac54990-ce66-4d00-a8ca-9eac86f4c475',
- 'ext': 'mp4',
- 'title': 'Nachtwacht: De Greystook',
- 'description': 'Nachtwacht: De Greystook',
- 'thumbnail': r're:^https?://.*\.jpg$',
- 'duration': 1468.02,
- },
- 'expected_warnings': ['is not a supported codec'],
- }, {
- 'url': 'https://mediazone.vrt.be/api/v1/canvas/assets/mz-ast-5e5f90b6-2d72-4c40-82c2-e134f884e93e',
- 'only_matching': True,
- }]
- _GEO_BYPASS = False
- _HLS_ENTRY_PROTOCOLS_MAP = {
- 'HLS': 'm3u8_native',
- 'HLS_AES': 'm3u8_native',
- }
- _REST_API_BASE = 'https://media-services-public.vrt.be/vualto-video-aggregator-web/rest/external/v2'
-
- def _real_extract(self, url):
- mobj = self._match_valid_url(url)
- site_id, video_id = mobj.group('site_id'), mobj.group('id')
-
- data = None
- if site_id != 'vrtvideo':
- # Old API endpoint, serves more formats but may fail for some videos
- data = self._download_json(
- 'https://mediazone.vrt.be/api/v1/%s/assets/%s'
- % (site_id, video_id), video_id, 'Downloading asset JSON',
- 'Unable to download asset JSON', fatal=False)
-
- # New API endpoint
- if not data:
- vrtnutoken = self._download_json('https://token.vrt.be/refreshtoken',
- video_id, note='refreshtoken: Retrieve vrtnutoken',
- errnote='refreshtoken failed')['vrtnutoken']
- headers = self.geo_verification_headers()
- headers.update({'Content-Type': 'application/json; charset=utf-8'})
- vrtPlayerToken = self._download_json(
- '%s/tokens' % self._REST_API_BASE, video_id,
- 'Downloading token', headers=headers, data=json.dumps({
- 'identityToken': vrtnutoken
- }).encode('utf-8'))['vrtPlayerToken']
- data = self._download_json(
- '%s/videos/%s' % (self._REST_API_BASE, video_id),
- video_id, 'Downloading video JSON', query={
- 'vrtPlayerToken': vrtPlayerToken,
- 'client': 'null',
- }, expected_status=400)
- if 'title' not in data:
- code = data.get('code')
- if code == 'AUTHENTICATION_REQUIRED':
- self.raise_login_required()
- elif code == 'INVALID_LOCATION':
- self.raise_geo_restricted(countries=['BE'])
- raise ExtractorError(data.get('message') or code, expected=True)
-
- # Note: The title may be an empty string
- title = data['title'] or f'{site_id} {video_id}'
- description = data.get('description')
-
- formats = []
- subtitles = {}
- for target in data['targetUrls']:
- format_url, format_type = url_or_none(target.get('url')), str_or_none(target.get('type'))
- if not format_url or not format_type:
- continue
- format_type = format_type.upper()
- if format_type in self._HLS_ENTRY_PROTOCOLS_MAP:
- fmts, subs = self._extract_m3u8_formats_and_subtitles(
- format_url, video_id, 'mp4', self._HLS_ENTRY_PROTOCOLS_MAP[format_type],
- m3u8_id=format_type, fatal=False)
- formats.extend(fmts)
- subtitles = self._merge_subtitles(subtitles, subs)
- elif format_type == 'HDS':
- formats.extend(self._extract_f4m_formats(
- format_url, video_id, f4m_id=format_type, fatal=False))
- elif format_type == 'MPEG_DASH':
- fmts, subs = self._extract_mpd_formats_and_subtitles(
- format_url, video_id, mpd_id=format_type, fatal=False)
- formats.extend(fmts)
- subtitles = self._merge_subtitles(subtitles, subs)
- elif format_type == 'HSS':
- fmts, subs = self._extract_ism_formats_and_subtitles(
- format_url, video_id, ism_id='mss', fatal=False)
- formats.extend(fmts)
- subtitles = self._merge_subtitles(subtitles, subs)
- else:
- formats.append({
- 'format_id': format_type,
- 'url': format_url,
- })
-
- subtitle_urls = data.get('subtitleUrls')
- if isinstance(subtitle_urls, list):
- for subtitle in subtitle_urls:
- subtitle_url = subtitle.get('url')
- if subtitle_url and subtitle.get('type') == 'CLOSED':
- subtitles.setdefault('nl', []).append({'url': subtitle_url})
-
- return {
- 'id': video_id,
- 'display_id': video_id,
- 'title': title,
- 'description': description,
- 'formats': formats,
- 'duration': float_or_none(data.get('duration'), 1000),
- 'thumbnail': data.get('posterImageUrl'),
- 'subtitles': subtitles,
- }
-
-
-class CanvasEenIE(InfoExtractor):
- IE_DESC = 'canvas.be and een.be'
- _VALID_URL = r'https?://(?:www\.)?(?Pcanvas|een)\.be/(?:[^/]+/)*(?P[^/?#&]+)'
- _TESTS = [{
- 'url': 'http://www.canvas.be/video/de-afspraak/najaar-2015/de-afspraak-veilt-voor-de-warmste-week',
- 'md5': 'ed66976748d12350b118455979cca293',
- 'info_dict': {
- 'id': 'mz-ast-5e5f90b6-2d72-4c40-82c2-e134f884e93e',
- 'display_id': 'de-afspraak-veilt-voor-de-warmste-week',
- 'ext': 'flv',
- 'title': 'De afspraak veilt voor de Warmste Week',
- 'description': 'md5:24cb860c320dc2be7358e0e5aa317ba6',
- 'thumbnail': r're:^https?://.*\.jpg$',
- 'duration': 49.02,
- },
- 'expected_warnings': ['is not a supported codec'],
- }, {
- # with subtitles
- 'url': 'http://www.canvas.be/video/panorama/2016/pieter-0167',
- 'info_dict': {
- 'id': 'mz-ast-5240ff21-2d30-4101-bba6-92b5ec67c625',
- 'display_id': 'pieter-0167',
- 'ext': 'mp4',
- 'title': 'Pieter 0167',
- 'description': 'md5:943cd30f48a5d29ba02c3a104dc4ec4e',
- 'thumbnail': r're:^https?://.*\.jpg$',
- 'duration': 2553.08,
- 'subtitles': {
- 'nl': [{
- 'ext': 'vtt',
- }],
- },
- },
- 'params': {
- 'skip_download': True,
- },
- 'skip': 'Pagina niet gevonden',
- }, {
- 'url': 'https://www.een.be/thuis/emma-pakt-thilly-aan',
- 'info_dict': {
- 'id': 'md-ast-3a24ced2-64d7-44fb-b4ed-ed1aafbf90b8',
- 'display_id': 'emma-pakt-thilly-aan',
- 'ext': 'mp4',
- 'title': 'Emma pakt Thilly aan',
- 'description': 'md5:c5c9b572388a99b2690030afa3f3bad7',
- 'thumbnail': r're:^https?://.*\.jpg$',
- 'duration': 118.24,
- },
- 'params': {
- 'skip_download': True,
- },
- 'expected_warnings': ['is not a supported codec'],
- }, {
- 'url': 'https://www.canvas.be/check-point/najaar-2016/de-politie-uw-vriend',
- 'only_matching': True,
- }]
-
- def _real_extract(self, url):
- mobj = self._match_valid_url(url)
- site_id, display_id = mobj.group('site_id'), mobj.group('id')
-
- webpage = self._download_webpage(url, display_id)
-
- title = strip_or_none(self._search_regex(
- r']+class="video__body__header__title"[^>]*>(.+?)
',
- webpage, 'title', default=None) or self._og_search_title(
- webpage, default=None))
-
- video_id = self._html_search_regex(
- r'data-video=(["\'])(?P(?:(?!\1).)+)\1', webpage, 'video id',
- group='id')
-
- return {
- '_type': 'url_transparent',
- 'url': 'https://mediazone.vrt.be/api/v1/%s/assets/%s' % (site_id, video_id),
- 'ie_key': CanvasIE.ie_key(),
- 'id': video_id,
- 'display_id': display_id,
- 'title': title,
- 'description': self._og_search_description(webpage),
- }
-
-
-class VrtNUIE(GigyaBaseIE):
- IE_DESC = 'VrtNU.be'
- _VALID_URL = r'https?://(?:www\.)?vrt\.be/vrtnu/a-z/(?:[^/]+/){2}(?P[^/?#&]+)'
- _TESTS = [{
- # Available via old API endpoint
- 'url': 'https://www.vrt.be/vrtnu/a-z/postbus-x/1989/postbus-x-s1989a1/',
- 'info_dict': {
- 'id': 'pbs-pub-e8713dac-899e-41de-9313-81269f4c04ac$vid-90c932b1-e21d-4fb8-99b1-db7b49cf74de',
- 'ext': 'mp4',
- 'title': 'Postbus X - Aflevering 1 (Seizoen 1989)',
- 'description': 'md5:b704f669eb9262da4c55b33d7c6ed4b7',
- 'duration': 1457.04,
- 'thumbnail': r're:^https?://.*\.jpg$',
- 'series': 'Postbus X',
- 'season': 'Seizoen 1989',
- 'season_number': 1989,
- 'episode': 'De zwarte weduwe',
- 'episode_number': 1,
- 'timestamp': 1595822400,
- 'upload_date': '20200727',
- },
- 'skip': 'This video is only available for registered users',
- 'expected_warnings': ['is not a supported codec'],
- }, {
- # Only available via new API endpoint
- 'url': 'https://www.vrt.be/vrtnu/a-z/kamp-waes/1/kamp-waes-s1a5/',
- 'info_dict': {
- 'id': 'pbs-pub-0763b56c-64fb-4d38-b95b-af60bf433c71$vid-ad36a73c-4735-4f1f-b2c0-a38e6e6aa7e1',
- 'ext': 'mp4',
- 'title': 'Aflevering 5',
- 'description': 'Wie valt door de mand tijdens een missie?',
- 'duration': 2967.06,
- 'season': 'Season 1',
- 'season_number': 1,
- 'episode_number': 5,
- },
- 'skip': 'This video is only available for registered users',
- 'expected_warnings': ['Unable to download asset JSON', 'is not a supported codec', 'Unknown MIME type'],
- }]
- _NETRC_MACHINE = 'vrtnu'
- _APIKEY = '3_0Z2HujMtiWq_pkAjgnS2Md2E11a1AwZjYiBETtwNE-EoEHDINgtnvcAOpNgmrVGy'
- _CONTEXT_ID = 'R3595707040'
-
- def _perform_login(self, username, password):
- auth_info = self._gigya_login({
- 'APIKey': self._APIKEY,
- 'targetEnv': 'jssdk',
- 'loginID': username,
- 'password': password,
- 'authMode': 'cookie',
- })
-
- if auth_info.get('errorDetails'):
- raise ExtractorError('Unable to login: VrtNU said: ' + auth_info.get('errorDetails'), expected=True)
-
- # Sometimes authentication fails for no good reason, retry
- login_attempt = 1
- while login_attempt <= 3:
- try:
- self._request_webpage('https://token.vrt.be/vrtnuinitlogin',
- None, note='Requesting XSRF Token', errnote='Could not get XSRF Token',
- query={'provider': 'site', 'destination': 'https://www.vrt.be/vrtnu/'})
-
- post_data = {
- 'UID': auth_info['UID'],
- 'UIDSignature': auth_info['UIDSignature'],
- 'signatureTimestamp': auth_info['signatureTimestamp'],
- '_csrf': self._get_cookies('https://login.vrt.be').get('OIDCXSRF').value,
- }
-
- self._request_webpage(
- 'https://login.vrt.be/perform_login',
- None, note='Performing login', errnote='perform login failed',
- headers={}, query={
- 'client_id': 'vrtnu-site'
- }, data=urlencode_postdata(post_data))
-
- except ExtractorError as e:
- if isinstance(e.cause, compat_HTTPError) and e.cause.code == 401:
- login_attempt += 1
- self.report_warning('Authentication failed')
- self._sleep(1, None, msg_template='Waiting for %(timeout)s seconds before trying again')
- else:
- raise e
- else:
- break
-
- def _real_extract(self, url):
- display_id = self._match_id(url)
-
- webpage = self._download_webpage(url, display_id)
-
- attrs = extract_attributes(self._search_regex(
- r'(]+>)', webpage, 'media element'))
- video_id = attrs['videoid']
- publication_id = attrs.get('publicationid')
- if publication_id:
- video_id = publication_id + '$' + video_id
-
- page = (self._parse_json(self._search_regex(
- r'digitalData\s*=\s*({.+?});', webpage, 'digial data',
- default='{}'), video_id, fatal=False) or {}).get('page') or {}
-
- info = self._search_json_ld(webpage, display_id, default={})
- return merge_dicts(info, {
- '_type': 'url_transparent',
- 'url': 'https://mediazone.vrt.be/api/v1/vrtvideo/assets/%s' % video_id,
- 'ie_key': CanvasIE.ie_key(),
- 'id': video_id,
- 'display_id': display_id,
- 'season_number': int_or_none(page.get('episode_season')),
- })
-
-
-class DagelijkseKostIE(InfoExtractor):
- IE_DESC = 'dagelijksekost.een.be'
- _VALID_URL = r'https?://dagelijksekost\.een\.be/gerechten/(?P[^/?#&]+)'
- _TEST = {
- 'url': 'https://dagelijksekost.een.be/gerechten/hachis-parmentier-met-witloof',
- 'md5': '30bfffc323009a3e5f689bef6efa2365',
- 'info_dict': {
- 'id': 'md-ast-27a4d1ff-7d7b-425e-b84f-a4d227f592fa',
- 'display_id': 'hachis-parmentier-met-witloof',
- 'ext': 'mp4',
- 'title': 'Hachis parmentier met witloof',
- 'description': 'md5:9960478392d87f63567b5b117688cdc5',
- 'thumbnail': r're:^https?://.*\.jpg$',
- 'duration': 283.02,
- },
- 'expected_warnings': ['is not a supported codec'],
- }
-
- def _real_extract(self, url):
- display_id = self._match_id(url)
- webpage = self._download_webpage(url, display_id)
-
- title = strip_or_none(get_element_by_class(
- 'dish-metadata__title', webpage
- ) or self._html_search_meta(
- 'twitter:title', webpage))
-
- description = clean_html(get_element_by_class(
- 'dish-description', webpage)
- ) or self._html_search_meta(
- ('description', 'twitter:description', 'og:description'),
- webpage)
-
- video_id = self._html_search_regex(
- r'data-url=(["\'])(?P(?:(?!\1).)+)\1', webpage, 'video id',
- group='id')
-
- return {
- '_type': 'url_transparent',
- 'url': 'https://mediazone.vrt.be/api/v1/dako/assets/%s' % video_id,
- 'ie_key': CanvasIE.ie_key(),
- 'id': video_id,
- 'display_id': display_id,
- 'title': title,
- 'description': description,
- }
diff --git a/yt_dlp/extractor/cbc.py b/yt_dlp/extractor/cbc.py
index e42f06246..41e092422 100644
--- a/yt_dlp/extractor/cbc.py
+++ b/yt_dlp/extractor/cbc.py
@@ -351,7 +351,9 @@ def _find_secret_formats(self, formats, video_id):
def _real_extract(self, url):
video_id = self._match_id(url)
- video_info = self._download_json('https://services.radio-canada.ca/ott/cbc-api/v2/assets/' + video_id, video_id)
+ video_info = self._download_json(
+ f'https://services.radio-canada.ca/ott/cbc-api/v2/assets/{video_id}',
+ video_id, expected_status=426)
email, password = self._get_login_info()
if email and password:
@@ -426,7 +428,7 @@ def _real_extract(self, url):
match = self._match_valid_url(url)
season_id = match.group('id')
show = match.group('show')
- show_info = self._download_json(self._API_BASE + show, season_id)
+ show_info = self._download_json(self._API_BASE + show, season_id, expected_status=426)
season = int(match.group('season'))
season_info = next((s for s in show_info['seasons'] if s.get('season') == season), None)
diff --git a/yt_dlp/extractor/cbslocal.py b/yt_dlp/extractor/cbslocal.py
deleted file mode 100644
index 3d50b0499..000000000
--- a/yt_dlp/extractor/cbslocal.py
+++ /dev/null
@@ -1,116 +0,0 @@
-from .anvato import AnvatoIE
-from .sendtonews import SendtoNewsIE
-from ..compat import compat_urlparse
-from ..utils import (
- parse_iso8601,
- unified_timestamp,
-)
-
-
-class CBSLocalIE(AnvatoIE): # XXX: Do not subclass from concrete IE
- _VALID_URL_BASE = r'https?://[a-z]+\.cbslocal\.com/'
- _VALID_URL = _VALID_URL_BASE + r'video/(?P\d+)'
-
- _TESTS = [{
- 'url': 'http://newyork.cbslocal.com/video/3580809-a-very-blue-anniversary/',
- 'info_dict': {
- 'id': '3580809',
- 'ext': 'mp4',
- 'title': 'A Very Blue Anniversary',
- 'description': 'CBS2’s Cindy Hsu has more.',
- 'thumbnail': 're:^https?://.*',
- 'timestamp': int,
- 'upload_date': r're:^\d{8}$',
- 'uploader': 'CBS',
- 'subtitles': {
- 'en': 'mincount:5',
- },
- 'categories': [
- 'Stations\\Spoken Word\\WCBSTV',
- 'Syndication\\AOL',
- 'Syndication\\MSN',
- 'Syndication\\NDN',
- 'Syndication\\Yahoo',
- 'Content\\News',
- 'Content\\News\\Local News',
- ],
- 'tags': ['CBS 2 News Weekends', 'Cindy Hsu', 'Blue Man Group'],
- },
- 'params': {
- 'skip_download': True,
- },
- }]
-
- def _real_extract(self, url):
- mcp_id = self._match_id(url)
- return self.url_result(
- 'anvato:anvato_cbslocal_app_web_prod_547f3e49241ef0e5d30c79b2efbca5d92c698f67:' + mcp_id, 'Anvato', mcp_id)
-
-
-class CBSLocalArticleIE(AnvatoIE): # XXX: Do not subclass from concrete IE
- _VALID_URL = CBSLocalIE._VALID_URL_BASE + r'\d+/\d+/\d+/(?P[0-9a-z-]+)'
-
- _TESTS = [{
- # Anvato backend
- 'url': 'http://losangeles.cbslocal.com/2016/05/16/safety-advocates-say-fatal-car-seat-failures-are-public-health-crisis',
- 'md5': 'f0ee3081e3843f575fccef901199b212',
- 'info_dict': {
- 'id': '3401037',
- 'ext': 'mp4',
- 'title': 'Safety Advocates Say Fatal Car Seat Failures Are \'Public Health Crisis\'',
- 'description': 'Collapsing seats have been the focus of scrutiny for decades, though experts say remarkably little has been done to address the issue. Randy Paige reports.',
- 'thumbnail': 're:^https?://.*',
- 'timestamp': 1463440500,
- 'upload_date': '20160516',
- 'uploader': 'CBS',
- 'subtitles': {
- 'en': 'mincount:5',
- },
- 'categories': [
- 'Stations\\Spoken Word\\KCBSTV',
- 'Syndication\\MSN',
- 'Syndication\\NDN',
- 'Syndication\\AOL',
- 'Syndication\\Yahoo',
- 'Syndication\\Tribune',
- 'Syndication\\Curb.tv',
- 'Content\\News'
- ],
- 'tags': ['CBS 2 News Evening'],
- },
- }, {
- # SendtoNews embed
- 'url': 'http://cleveland.cbslocal.com/2016/05/16/indians-score-season-high-15-runs-in-blowout-win-over-reds-rapid-reaction/',
- 'info_dict': {
- 'id': 'GxfCe0Zo7D-175909-5588',
- },
- 'playlist_count': 9,
- 'params': {
- # m3u8 download
- 'skip_download': True,
- },
- }]
-
- def _real_extract(self, url):
- display_id = self._match_id(url)
- webpage = self._download_webpage(url, display_id)
-
- sendtonews_url = SendtoNewsIE._extract_url(webpage)
- if sendtonews_url:
- return self.url_result(
- compat_urlparse.urljoin(url, sendtonews_url),
- ie=SendtoNewsIE.ie_key())
-
- info_dict = self._extract_anvato_videos(webpage, display_id)
-
- timestamp = unified_timestamp(self._html_search_regex(
- r'class="(?:entry|post)-date"[^>]*>([^<]+)', webpage,
- 'released date', default=None)) or parse_iso8601(
- self._html_search_meta('uploadDate', webpage))
-
- info_dict.update({
- 'display_id': display_id,
- 'timestamp': timestamp,
- })
-
- return info_dict
diff --git a/yt_dlp/extractor/cbsnews.py b/yt_dlp/extractor/cbsnews.py
index 16edf3af8..65ecc62f0 100644
--- a/yt_dlp/extractor/cbsnews.py
+++ b/yt_dlp/extractor/cbsnews.py
@@ -1,36 +1,153 @@
+import base64
import re
+import urllib.error
+import urllib.parse
import zlib
+from .anvato import AnvatoIE
from .common import InfoExtractor
-from .cbs import CBSIE
-from ..compat import (
- compat_b64decode,
- compat_urllib_parse_unquote,
-)
+from .paramountplus import ParamountPlusIE
from ..utils import (
+ ExtractorError,
+ HEADRequest,
+ UserNotLive,
+ determine_ext,
+ float_or_none,
+ format_field,
+ int_or_none,
+ make_archive_id,
+ mimetype2ext,
parse_duration,
+ smuggle_url,
+ traverse_obj,
+ url_or_none,
)
-class CBSNewsEmbedIE(CBSIE): # XXX: Do not subclass from concrete IE
+class CBSNewsBaseIE(InfoExtractor):
+ _LOCALES = {
+ 'atlanta': None,
+ 'baltimore': 'BAL',
+ 'boston': 'BOS',
+ 'chicago': 'CHI',
+ 'colorado': 'DEN',
+ 'detroit': 'DET',
+ 'losangeles': 'LA',
+ 'miami': 'MIA',
+ 'minnesota': 'MIN',
+ 'newyork': 'NY',
+ 'philadelphia': 'PHI',
+ 'pittsburgh': 'PIT',
+ 'sacramento': 'SAC',
+ 'sanfrancisco': 'SF',
+ 'texas': 'DAL',
+ }
+ _LOCALE_RE = '|'.join(map(re.escape, _LOCALES))
+ _ANVACK = '5VD6Eyd6djewbCmNwBFnsJj17YAvGRwl'
+
+ def _get_item(self, webpage, display_id):
+ return traverse_obj(self._search_json(
+ r'CBSNEWS\.defaultPayload\s*=', webpage, 'payload', display_id,
+ default={}), ('items', 0, {dict})) or {}
+
+ def _get_video_url(self, item):
+ return traverse_obj(item, 'video', 'video2', expected_type=url_or_none)
+
+ def _extract_playlist(self, webpage, playlist_id):
+ entries = [self.url_result(embed_url, CBSNewsEmbedIE) for embed_url in re.findall(
+ r'