1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-23 00:16:48 +00:00

[RTV SLO 4D] Extract both HTTPS and HTTP HLS URLs

This commit is contained in:
Miha Frangež 2021-03-25 11:48:40 +01:00
parent 944f674c6d
commit a302001725

View File

@ -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 = [{