Compare commits

...

8 Commits

Author SHA1 Message Date
dirkf
c2eb187fd6
Merge ff4e7e280b into e1b3fa242c 2024-07-28 01:20:29 +09:00
dirkf
ff4e7e280b
Extend _MEDIA_SETS to get HD Reel videos 2021-03-03 18:21:44 +00:00
dirkf
49d83ee502
Extend _MEDIA_SETS to get HD Reel videos 2021-03-03 18:10:22 +00:00
dirkf
7a1e11c045
Extend _MEDIA_SETS to get HD Reel videos 2021-03-03 18:06:35 +00:00
dirkf
d6ed9424cd
Get HD formats for Reel 2021-03-03 14:14:14 +00:00
dirkf
24a1061f53
Get HD formats for Reel 2021-03-03 14:11:36 +00:00
dirkf
fcb4cf1783
Get HD formats for Reel 2021-03-03 13:56:17 +00:00
dirkf
9c7f8ad7bb
Get HD formats for Reel 2021-03-03 13:33:33 +00:00

View File

@ -1033,6 +1033,8 @@ class BBCIE(BBCCoUkIE):
} }
# bbc reel (e.g. https://www.bbc.com/reel/video/p07c6sb6/how-positive-thinking-is-harming-your-happiness) # bbc reel (e.g. https://www.bbc.com/reel/video/p07c6sb6/how-positive-thinking-is-harming-your-happiness)
programme_id = self._search_regex(
r'/reel/video/(?P<id>%s)/' % self._ID_REGEX, url, 'Reel pid', default=None)
initial_data = self._parse_json(self._html_search_regex( initial_data = self._parse_json(self._html_search_regex(
r'<script[^>]+id=(["\'])initial-data\1[^>]+data-json=(["\'])(?P<json>(?:(?!\2).)+)', r'<script[^>]+id=(["\'])initial-data\1[^>]+data-json=(["\'])(?P<json>(?:(?!\2).)+)',
webpage, 'initial data', default='{}', group='json'), playlist_id, fatal=False) webpage, 'initial data', default='{}', group='json'), playlist_id, fatal=False)
@ -1044,12 +1046,13 @@ class BBCIE(BBCCoUkIE):
version_id = clip_data.get('versionID') version_id = clip_data.get('versionID')
if version_id: if version_id:
title = smp_data['title'] title = smp_data['title']
# also try for higher resolutions
self._MEDIA_SETS.insert(0, 'iptv-all')
formats, subtitles = self._download_media_selector(version_id) formats, subtitles = self._download_media_selector(version_id)
self._sort_formats(formats) self._sort_formats(formats)
image_url = smp_data.get('holdingImageURL') image_url = smp_data.get('holdingImageURL')
display_date = init_data.get('displayDate') display_date = init_data.get('displayDate')
topic_title = init_data.get('topicTitle') topic_title = init_data.get('topicTitle')
return { return {
'id': version_id, 'id': version_id,
'title': title, 'title': title,