From a302001725fceae0c6a7e754e3acfd442e17fc39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miha=20Frange=C5=BE?= Date: Thu, 25 Mar 2021 11:48:40 +0100 Subject: [PATCH] [RTV SLO 4D] Extract both HTTPS and HTTP HLS URLs --- youtube_dl/extractor/rtvslo.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/youtube_dl/extractor/rtvslo.py b/youtube_dl/extractor/rtvslo.py index c7f33d138..ff8e59e71 100644 --- a/youtube_dl/extractor/rtvslo.py +++ b/youtube_dl/extractor/rtvslo.py @@ -58,9 +58,11 @@ class RTVSLO4DIE(InfoExtractor): query={'client_id': '19cc0556a5ee31d0d52a0e30b0696b26'})['response'] if media_info['mediaType'] == 'video': - formats = self._extract_m3u8_formats( - media_info['addaptiveMedia']['hls_sec'], media_id, 'mp4', - entry_protocol='m3u8_native', m3u8_id='hls') + formats = [] + for proto in ('hls_sec', 'hls',): + formats += self._extract_m3u8_formats( + media_info['addaptiveMedia'][proto], media_id, 'mp4', + entry_protocol='m3u8_native', m3u8_id='hls') elif media_info['mediaType'] == 'audio': formats = [{