Skip to content

Commit 096737a

Browse files
[BUGFIX] fix(handbrake): skip preset argument when empty (automatic-ripping-machine#1689)
* fix(handbrake): skip preset argument when empty HandBrakeCLI does not require a preset, so we should not pass an empty --preset argument when hb_preset is not configured. Fixes automatic-ripping-machine#1637 * Update VERSION --------- Co-authored-by: Mtech <62650032+microtechno9000@users.noreply.github.com>
1 parent 42472fc commit 096737a

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.21.4
1+
2.21.5

arm/ripper/handbrake.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ def build_handbrake_command(srcpath, filepathname, hb_preset, hb_args, logfile,
7070
if main_feature:
7171
cmd += "--main-feature "
7272

73-
cmd += f"--preset \"{hb_preset}\" "
73+
if hb_preset:
74+
cmd += f"--preset \"{hb_preset}\" "
7475

7576
if track_number is not None:
7677
cmd += f"-t {track_number} "

0 commit comments

Comments
 (0)