mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-11-27 21:54:17 +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:
parent
c05a7364af
commit
f3db402b82
@ -121,7 +121,7 @@ def _hlsparse(config, text, url, output, **kwargs):
|
||||
|
||||
for bit_rate in list(videos.keys()):
|
||||
urls, resolution, vcodec, audio_group = videos[bit_rate]
|
||||
if audio_group:
|
||||
if audio_group and media:
|
||||
for group in media[audio_group]:
|
||||
audio_url = get_full_url(group[0], url)
|
||||
chans = group[1] if audio_url else channels
|
||||
|
Loading…
Reference in New Issue
Block a user