Ensure persist value is an integer

This commit is contained in:
Joshua M. Boniface 2021-05-25 21:55:02 -04:00
parent 3690e079d4
commit 6b89ae369c

View file

@ -84,7 +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["remote_persist"] = int(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"])