1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-24 04:05:39 +01:00

hlsparse: check if media has a value or not

This happen when the audio group dont have a URI in it
This commit is contained in:
Johan Andersson 2021-08-13 11:31:12 +02:00
parent c05a7364af
commit f3db402b82

View File

@ -121,7 +121,7 @@ def _hlsparse(config, text, url, output, **kwargs):
for bit_rate in list(videos.keys()): for bit_rate in list(videos.keys()):
urls, resolution, vcodec, audio_group = videos[bit_rate] urls, resolution, vcodec, audio_group = videos[bit_rate]
if audio_group: if audio_group and media:
for group in media[audio_group]: for group in media[audio_group]:
audio_url = get_full_url(group[0], url) audio_url = get_full_url(group[0], url)
chans = group[1] if audio_url else channels chans = group[1] if audio_url else channels