Repository navigation
Conversation
Audible .aa/.aax files can't be decrypted without the requester's own
activation bytes, so a release in that format is unplayable in any media
server. Drop them in the pre-scoring filter, next to the 20 MB floor, so
automatic search never grabs one and interactive search doesn't list them.
`aax` matches as a whole token anywhere in the title. A bare `aa` is a
common author initialism ("AA Milne"), so it only counts as a `.aa`
extension or a bracketed `[AA]`/`(AA)` tag.
"Frank Herbert - Dune AAX" was a must-accept case in the match-gates
tests (kikootwo#459). It moves to the DRM tests, which now expect it rejected.
An AAX file is encrypted for the Audible account that bought it, so a torrent copy is locked to the uploader's account and the requester's own activation bytes can't unlock it either. The comments and docs said the opposite. Also note that Audiobookshelf doesn't treat .aa/.aax as audio.
Owner
|
@NichCodes thanks for this. I'm bringing it in as #528 with you as co-author, narrowed a bit: only the automatic search skips these releases (Interactive Search still lists them), and only when the title marks the file itself as DRM, with a |
kikootwo
added a commit
that referenced
this pull request
Nov 2, 2026
…528) Automatic search skips a release whose title marks it as an Audible DRM file: a .aa, .aax or .aaxc extension ending a word, or a bracketed tag holding only the format ([AAX], (AA), {AAXC}), unless the title also names a playable format (m4b, mp3, m4a, flac, opus, ogg). A bare AAX word is kept, since converted releases name their source that way. Each skipped release is logged once; interactive search still lists them. DRM_EXTENSIONS gains .aaxc. Based on #518 by @NichCodes, narrowed to automatic grabs and to titles that mark the file itself as DRM. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: NichCodes <90598280+NichCodes@users.noreply.github.com>
Owner
|
@NichCodes thanks again. It's in now as #528 with you as co-author, as described above. It will be in the next release. Closing this one in favour of #528. |
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.
Summary
Automatic search can currently grab Audible
.aa/.aaxreleases, but nothing in a typical RMAB setup can play them. This drops DRM releases in the ranking pre-filter, next to the 20 MB floor, so they're never grabbed or listed.Why reject them instead of importing them
documentation/phase3/file-organization.md): chapter merging excludes.aa/.aax, and Plex format coercion logs "DRM, Plex cannot import" and skips them.aa/aaxout of its supported audio types (SupportedAudioTypesinserver/utils/globals.js, checked on v2.37.2), so the book shows up with nothing to play. Plex can't import them either..aa/.aaxare inAUDIO_EXTENSIONS, so the download and import go through as normal. The requester only finds out when playback fails, and there's no automatic retry.awaiting_searchand is retried later, like any request with no usable results. Interactive search still lists every other release.Behavior
aaxmatches as a whole word anywhere in the title:.aax,[AAX],Dune AAX.aaonly matches as a.aaextension or an[AA]/(AA)tag. A bare "AA" is usually an author's initials ("AA Milne"), so it doesn't count.Test Case Change
tests/utils/ranking-match-gates.test.ts(#459) includedFrank Herbert - Dune AAXin the "right books still clear the threshold" list, where it checks that a format word doesn't break title matching. With this change that release is rejected before scoring, so I moved the case into the DRM tests intests/utils/ranking-algorithm.test.ts, which now expect it rejected. Every other format-word case in that list is unchanged.If you'd still rather keep AAX releases eligible, I can turn this into a score penalty instead, so one is only chosen when nothing else matches.
Testing
tests/utils/ranking-algorithm.test.ts:[AAX], a bareAAX,[AA], a dotted.aaxand a dotted.aaare rejected.docker compose buildsucceeds.documentation/phase3/ranking-algorithm.md(pre-filter list).