1
0
mirror of https://github.com/spaam/svtplay-dl.git synced 2024-12-12 12:54:18 +01:00

utils.stream: forgot .get to fetch the config value

This commit is contained in:
Johan Andersson 2023-06-02 20:26:32 +02:00
parent 485f3fa6d8
commit d35796ff66
2 changed files with 2 additions and 1 deletions

View File

@ -368,6 +368,7 @@ def setup_defaults():
options.set("only_audio", False) options.set("only_audio", False)
options.set("only_video", False) options.set("only_video", False)
options.set("output_format", "mp4") options.set("output_format", "mp4")
options.set("get_all_subtitles", False)
return _special_settings(options) return _special_settings(options)

View File

@ -97,7 +97,7 @@ def subtitle_filter(subtitles) -> List:
def subtitle_decider(stream, subtitles): def subtitle_decider(stream, subtitles):
if subtitles and (stream.config.get("merge_subtitle") or stream.config.get("subtitle") or stream.config("get_all_subtitles")): if subtitles and (stream.config.get("merge_subtitle") or stream.config.get("subtitle") or stream.config.get("get_all_subtitles")):
subtitles = subtitle_filter(subtitles) subtitles = subtitle_filter(subtitles)
if stream.config.get("get_all_subtitles"): if stream.config.get("get_all_subtitles"):
for sub in subtitles: for sub in subtitles: