mirror of
https://github.com/spaam/svtplay-dl.git
synced 2024-12-03 16:44:17 +01:00
utils.stream: forgot .get to fetch the config value
This commit is contained in:
parent
485f3fa6d8
commit
d35796ff66
@ -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)
|
||||
|
||||
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user