From 53290d73441631ea93a5efa4b55898118be8fc36 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Sun, 24 Jul 2022 12:27:11 -0400 Subject: [PATCH] Ensure nonetype list args become empty lists Prevents a potential bug like in #23 --- rffmpeg | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rffmpeg b/rffmpeg index fd17c07..2dd80a2 100755 --- a/rffmpeg +++ b/rffmpeg @@ -120,11 +120,15 @@ def load_config(): config["remote_args"] = config_remote.get( "args", ["-i", "/var/lib/jellyfin/.ssh/id_rsa"] ) + if config["remote_args"] is None: + config["remote_args"] = [] config["persist_time"] = config_remote.get("persist", 300) # Parse the keys from the commands group config["ssh_command"] = config_commands.get("ssh", "/usr/bin/ssh") config["pre_commands"] = config_commands.get("pre", []) + if config["pre_commands"] is None: + config["pre_commands"] = [] config["ffmpeg_command"] = config_commands.get( "ffmpeg", "/usr/lib/jellyfin-ffmpeg/ffmpeg" )