1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-27 21:54: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: if subtitles:
for sub in list(subtitles.keys()): for sub in list(subtitles.keys()):
for n in subtitles[sub]: for n in subtitles[sub]:
subfix = n[2] subfix = n[1]
if len(subtitles[sub]) > 1: if len(subtitles[sub]) > 1:
if subfix: if subfix:
subfix = f"{n[1]}-caption" subfix = f"{n[1]}-caption"