Skip to content

Commit

Permalink
Move SSH command to fallback options
Browse files Browse the repository at this point in the history
Avoids erroring out with existing configs.

Addresses #10
  • Loading branch information
Joshua Boniface committed Apr 29, 2021
1 parent 1a0e9f0 commit 0231ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rffmpeg.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@
"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"],
Expand All @@ -84,6 +83,7 @@
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"])

Expand Down

0 comments on commit 0231ee8

Please sign in to comment.