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:
parent
8a2bd08b25
commit
82151fd1ed
@ -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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user