mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-27 06:10:38 +01:00
Extend _MEDIA_SETS to get HD Reel videos
This commit is contained in:
parent
49d83ee502
commit
ff4e7e280b
|
@ -995,7 +995,7 @@ 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(
|
programme_id = self._search_regex(
|
||||||
r'/reel/video/(?P<id>%s)/' % self._ID_REGEX, url, 'Reel pid', default=None)
|
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).)+)',
|
||||||
|
@ -1009,7 +1009,7 @@ class BBCIE(BBCCoUkIE):
|
||||||
if version_id:
|
if version_id:
|
||||||
title = smp_data['title']
|
title = smp_data['title']
|
||||||
# also try for higher resolutions
|
# also try for higher resolutions
|
||||||
self._MEDIA_SETS.insert(0,'iptv-all')
|
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')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user