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:
parent
c05a7364af
commit
f3db402b82
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user