1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-11-23 19:55:38 +01:00

subtitle_filter: return empty list if no subs.

This commit is contained in:
Johan Andersson 2021-06-13 01:20:39 +02:00
parent 8a2bd08b25
commit 82151fd1ed

View File

@ -76,6 +76,8 @@ def audio_role(config, streams) -> List:
def subtitle_filter(subtitles) -> List:
languages = []
subs = []
if not subtitles:
return subs
preferred = subtitles[0].config.get("subtitle_preferred")
all_subs = subtitles[0].config.get("get_all_subtitles")