From bc4907c8ab101291976bcfe27b51149ef81e2f0f Mon Sep 17 00:00:00 2001 From: Florentin Le Moal Date: Tue, 6 Aug 2024 11:28:02 +0200 Subject: [PATCH] Fixed some comments and code --- yt_dlp/extractor/rtve.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/yt_dlp/extractor/rtve.py b/yt_dlp/extractor/rtve.py index ef5d944e1f..aa463102fe 100644 --- a/yt_dlp/extractor/rtve.py +++ b/yt_dlp/extractor/rtve.py @@ -14,7 +14,7 @@ class RTVEALaCartaIE(InfoExtractor): IE_NAME = 'rtve.es:alacarta' - IE_DESC = 'RTVE a la carta, play and infantil' + IE_DESC = 'RTVE a la carta and Play' _VALID_URL = [ r'https?://(?:www\.)?rtve\.es/(m/)?(alacarta/videos|filmoteca)/[^/]+/[^/]+/(?P\d+)', r'https?://(?:www\.)?rtve\.es/(m/)?play/videos/[^/]+/[^/]+/(?P\d+)', @@ -147,12 +147,12 @@ def _get_alfabet(alphabet_data): def _extract_png_formats(self, video_id): formats = [] - + q = qualities(['Media', 'Alta', 'HQ', 'HD_READY', 'HD_FULL']) for manager in (self._manager, 'rtveplayw'): png = self._download_webpage( f'http://www.rtve.es/ztnr/movil/thumbnail/{manager}/videos/{video_id}.png', video_id, 'Downloading url information', query={'q': 'v2'}) - q = qualities(['Media', 'Alta', 'HQ', 'HD_READY', 'HD_FULL']) + for quality, video_url in self._decrypt_url(png): ext = determine_ext(video_url) if ext == 'm3u8':