From dafbe71e8e6d6e601efebfaa2edf23bedcafa049 Mon Sep 17 00:00:00 2001 From: Daniel Hellstern Date: Thu, 13 May 2021 21:12:32 +0000 Subject: [PATCH] Moved persistence length to fallback configuration section --- rffmpeg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rffmpeg.py b/rffmpeg.py index 2a855a3..833693d 100755 --- a/rffmpeg.py +++ b/rffmpeg.py @@ -73,7 +73,6 @@ try: "logfile": o_config["rffmpeg"]["logging"]["logfile"], "remote_hosts": o_config["rffmpeg"]["remote"]["hosts"], "remote_user": o_config["rffmpeg"]["remote"]["user"], - "remote_persist": o_config["rffmpeg"]["remote"]["persist"], "remote_args": o_config["rffmpeg"]["remote"]["args"], "pre_commands": o_config["rffmpeg"]["commands"]["pre"], "ffmpeg_command": o_config["rffmpeg"]["commands"]["ffmpeg"], @@ -85,6 +84,7 @@ except Exception as e: # Handle the fallback configuration using get() to avoid failing config["ssh_command"] = o_config["rffmpeg"]["commands"].get("ssh", "ssh") +config["remote_persist"] = o_config["rffmpeg"]["remote"].get("persist", 0) config["fallback_ffmpeg_command"] = o_config["rffmpeg"]["commands"].get("fallback_ffmpeg", config["ffmpeg_command"]) config["fallback_ffprobe_command"] = o_config["rffmpeg"]["commands"].get("fallback_ffprobe", config["ffprobe_command"])