Skip to content

mam-audible: search Audible from id3 when MAM finds nothing - #31

Draft
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-management-1f4f
Draft

cursor[bot] wants to merge 1 commit into
mainfrom
cursor/critical-bug-management-1f4f

Conversation

@cursor

@cursor cursor Bot commented Sep 29, 2026

Copy link
Copy Markdown

Default metadata=mam-audible passed bestMAMMatch into getAudibleBooks even when MAM found nothing. getAudibleBooks(None) never searches, so a file with usable id3 tags stayed unmatched unless a pin supplied an ASIN.

Impact: The default metadata mode skipped Audible entirely on a MAM miss (book not snatched, search miss, or empty result). Those releases never matched and were never filed.

Fix: When MAM found nothing, pass the file's tags (ffprobeBook) — the same source metadata=audible already uses. An English MAM hit still searches from MAM metadata. Foreign, multibook, and collection paths are unchanged.

Validation: MamAudibleFallbackTest — getAudibleBooks(None) makes no requests; hybrid buildTreeFromHybridSources with a MAM miss matches from id3. The hybrid test fails without the fix (isMatched stays False). Full suite 225 tests OK. Correctness and security review of the diff: no findings.

Open in Web View Automation 

Default metadata=mam-audible passed bestMAMMatch into getAudibleBooks even
when MAM missed. getAudibleBooks(None) never searches, so a file with
usable id3 tags stayed unmatched unless a pin supplied an ASIN.

Co-authored-by: Mancolt <Mancolt@users.noreply.github.com>
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.

1 participant