Skip to content

[BUGFIX] fix(handbrake): skip preset argument when empty#1689

Merged
microtechno9000 merged 3 commits intoautomatic-ripping-machine:mainfrom
ImLunaHey:fix/handbrake-empty-preset
Feb 5, 2026
Merged

[BUGFIX] fix(handbrake): skip preset argument when empty#1689
microtechno9000 merged 3 commits intoautomatic-ripping-machine:mainfrom
ImLunaHey:fix/handbrake-empty-preset

Conversation

@ImLunaHey
Copy link
Copy Markdown
Contributor

Summary

HandBrakeCLI does not require a preset, so passing an empty --preset argument when hb_preset is not configured can cause issues.

This fix adds a conditional check to only include the --preset argument when hb_preset is non-empty, allowing HandBrake to use its default settings or explicit arguments provided via hb_args.

Changes

  • arm/ripper/handbrake.py: Added conditional check before appending preset argument

Fixes #1637

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
ImLunaHey added a commit to ImLunaHey/nixos-configs that referenced this pull request Feb 5, 2026
Temporarily set HB_PRESET to 'CLI Default' to avoid empty preset error.
Custom encoder args still fully control output quality.
Revert once automatic-ripping-machine/automatic-ripping-machine#1689 merges.
Copy link
Copy Markdown
Collaborator

@microtechno9000 microtechno9000 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice simple bugfix, thanks

@microtechno9000 microtechno9000 changed the title fix(handbrake): skip preset argument when empty [BUGFIX] fix(handbrake): skip preset argument when empty Feb 5, 2026
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud bot commented Feb 5, 2026

@microtechno9000 microtechno9000 merged commit 096737a into automatic-ripping-machine:main Feb 5, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

🔧 You should be able to override or not include a preset

2 participants