1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-12-03 16:44:17 +01:00

hls: use the correct language

This commit is contained in:
Johan Andersson 2023-11-29 22:24:23 +01:00
parent 5420cff4ed
commit 347403e9e7

View File

@ -168,7 +168,7 @@ def _hlsparse(config, text, url, output, **kwargs):
if subtitles:
for sub in list(subtitles.keys()):
for n in subtitles[sub]:
subfix = n[2]
subfix = n[1]
if len(subtitles[sub]) > 1:
if subfix:
subfix = f"{n[1]}-caption"