From ff4e7e280b415e87963e5459daef4dbe317d5c4b Mon Sep 17 00:00:00 2001 From: dirkf Date: Wed, 3 Mar 2021 18:21:44 +0000 Subject: [PATCH] Extend _MEDIA_SETS to get HD Reel videos --- youtube_dl/extractor/bbc.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl/extractor/bbc.py b/youtube_dl/extractor/bbc.py index 9ff5ba713..ba9098190 100644 --- a/youtube_dl/extractor/bbc.py +++ b/youtube_dl/extractor/bbc.py @@ -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) - programme_id = self._search_regex( + programme_id = self._search_regex( r'/reel/video/(?P%s)/' % self._ID_REGEX, url, 'Reel pid', default=None) initial_data = self._parse_json(self._html_search_regex( r']+id=(["\'])initial-data\1[^>]+data-json=(["\'])(?P(?:(?!\2).)+)', @@ -1009,7 +1009,7 @@ class BBCIE(BBCCoUkIE): if version_id: title = smp_data['title'] # 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) self._sort_formats(formats) image_url = smp_data.get('holdingImageURL')