feature: multi-part m4b merging - #120
Open
benjitobz wants to merge 1 commit into
Open
Conversation
benjitobz
force-pushed
the
feature/m4b-merge-multi-part
branch
from
September 3, 2026 20:00
8979369 to
ad97b78
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Chaptarr already merges multi-part audiobook downloads into a single M4B when conversion is planned, but releases that arrive as multiple M4B parts are skipped entirely — since no format conversion was needed. This adds an opt-in "Create Single File" setting on quality profiles: when enabled, multi-part downloads whose parts are already M4B are merged into one M4B file on import. Embedded chapters from each part are preserved and re-offset in the merged file, so chapter navigation survives the concatenation instead of being lost. With the setting off (the default), behavior is unchanged. Reason for adding this is it's nice to have the books in one file, especially while using ABS in a vehicle.
Fixes # — n/a (feature)
Database Migration
YES - Migration 103_add_quality_profile_merge_multi_part_files:
How was this tested?
Docker (linux/amd64) on an Ubuntu server host, image built with Dockerfile.build. Exercised with real multi-part audiobook releases:
Screenshots (UI changes only) - (red box is just show the change not actually present in the UI)
A note on AI: We know AI/agentic coding is everywhere and only getting
more popular. We won't insist that you disclose whether you used it or which
models you used, but in the same spirit, please don't take offense if your PR
is scrutinized and changes are requested.
Review time: The longer the PR and the more lines changed, the longer the
review will take. Small, focused PRs merge fastest. If yours is big, please be
patient.