From d35796ff66cf7aa109052b569924ccc6011b071f Mon Sep 17 00:00:00 2001 From: Johan Andersson Date: Fri, 2 Jun 2023 20:26:32 +0200 Subject: [PATCH] utils.stream: forgot .get to fetch the config value --- lib/svtplay_dl/utils/parser.py | 1 + lib/svtplay_dl/utils/stream.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/svtplay_dl/utils/parser.py b/lib/svtplay_dl/utils/parser.py index 567b1dc..8e4df5b 100644 --- a/lib/svtplay_dl/utils/parser.py +++ b/lib/svtplay_dl/utils/parser.py @@ -368,6 +368,7 @@ def setup_defaults(): options.set("only_audio", False) options.set("only_video", False) options.set("output_format", "mp4") + options.set("get_all_subtitles", False) return _special_settings(options) diff --git a/lib/svtplay_dl/utils/stream.py b/lib/svtplay_dl/utils/stream.py index 696ab73..f0f7b3a 100644 --- a/lib/svtplay_dl/utils/stream.py +++ b/lib/svtplay_dl/utils/stream.py @@ -97,7 +97,7 @@ def subtitle_filter(subtitles) -> List: 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) if stream.config.get("get_all_subtitles"): for sub in subtitles: