mirror of
https://github.com/joshuaboniface/rffmpeg.git
synced 2026-07-18 00:45:53 +00:00
Move SSH command to fallback options
Avoids erroring out with existing configs. Addresses #10
This commit is contained in:
parent
1a0e9f0d2f
commit
0231ee868e
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,6 @@ try:
|
|||
"remote_hosts": o_config["rffmpeg"]["remote"]["hosts"],
|
||||
"remote_user": o_config["rffmpeg"]["remote"]["user"],
|
||||
"remote_args": o_config["rffmpeg"]["remote"]["args"],
|
||||
"ssh_command": o_config["rffmpeg"]["commands"]["ssh"],
|
||||
"pre_commands": o_config["rffmpeg"]["commands"]["pre"],
|
||||
"ffmpeg_command": o_config["rffmpeg"]["commands"]["ffmpeg"],
|
||||
"ffprobe_command": o_config["rffmpeg"]["commands"]["ffprobe"],
|
||||
|
|
@ -84,6 +83,7 @@ except Exception as e:
|
|||
exit(1)
|
||||
|
||||
# Handle the fallback configuration using get() to avoid failing
|
||||
config["ssh_command"] = o_config["rffmpeg"]["commands"].get("ssh", "ssh")
|
||||
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"])
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue