from .brightcove import BrightcoveNewIE
from .common import InfoExtractor
-
-from ..utils import (
- ExtractorError,
- traverse_obj
-)
+from ..utils import ExtractorError, traverse_obj
class OneNewsNZIE(InfoExtractor):
'duration': 38.272,
'thumbnail': r're:^https?://.*\.jpg$',
'description': 'Greenpeace accused the Government of "greenwashing" instead of taking climate action.',
- }
- }]
+ },
+ }],
}, {
# YouTube video
'url': 'https://www.1news.co.nz/2022/09/30/now-is-the-time-to-care-about-womens-rugby/',
'availability': 'public',
'playable_in_embed': True,
'live_status': 'not_live',
- }
- }]
+ },
+ }],
}, {
# 2 Brightcove videos
'url': 'https://www.1news.co.nz/2022/09/29/raw-videos-capture-hurricane-ians-fury-as-it-slams-florida/',
brightcove_config = traverse_obj(item, ('embed', 'config'))
brightcove_url = self.BRIGHTCOVE_URL_TEMPLATE % (
traverse_obj(brightcove_config, 'brightcoveAccount') or '963482464001',
- traverse_obj(brightcove_config, 'brightcoveVideoId')
+ traverse_obj(brightcove_config, 'brightcoveVideoId'),
)
entries.append(self.url_result(brightcove_url, BrightcoveNewIE))
elif item_type == 'youtube':
playlist_title = (
traverse_obj(fusion_metadata, ('headlines', 'basic'))
- or self._og_search_title(webpage)
- or self._html_extract_title(webpage)
+ or self._generic_title('', webpage)
)
return self.playlist_result(entries, display_id, playlist_title)