Skip to content

Commit

Permalink
converted to f-string
Browse files Browse the repository at this point in the history
  • Loading branch information
shitwolfymakes committed Jun 3, 2022
1 parent 9dd4919 commit ceb221c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions arm/ripper/handbrake.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,10 @@ def handbrake_main_feature(srcpath, basepath, logfile, job):
hb_args = cfg.arm_config["HB_ARGS_BD"]
hb_preset = cfg.arm_config["HB_PRESET_BD"]

cmd = 'nice {0} -i {1} -o {2} --main-feature --preset "{3}" {4} >> {5} 2>&1'.format(
cfg.arm_config["HANDBRAKE_CLI"],
shlex.quote(srcpath),
shlex.quote(filepathname),
hb_preset,
hb_args,
logfile
)
cmd = f"nice {cfg.arm_config['HANDBRAKE_CLI']} -i {shlex.quote(srcpath)} " \
f"-o {shlex.quote(filepathname)} --main-feature " \
f"--preset \"{hb_preset}\" {hb_args} " \
f">> {logfile} 2>&1"

logging.debug(f"Sending command: {cmd}")

Expand Down

0 comments on commit ceb221c

Please sign in to comment.