Skip to content

mam: ranking no longer requires verbose - #30

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

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

Conversation

@cursor

@cursor cursor Bot commented Sep 27, 2026

Copy link
Copy Markdown

MAM ranking and the interactive pick lived under if (verbose): in getMAMBooks. With Config/flags/verbose off (a documented flag), bestMAMMatch stayed unset even when MAM returned snatched hits.

Impact: metadata=mam filed nothing. Default mam-audible skipped MAM and foreign-language detection and searched Audible from id3 only.

Fix: Un-indent ranking to match _rankAudible — verbose only gates the Found N MAM match(es) line. Title/author gates are unchanged.

Validation: MamRankingWithoutVerboseTest (accept + reject with verbose=0). Full suite 223 tests OK. Correctness and security review of the diff: no findings.

Open in Web View Automation 

getMAMBooks nested interactive pick and automatic ranking under
Config/flags/verbose, so a run with verbose off left bestMAMMatch unset
even when MAM returned snatched hits. metadata=mam then filed nothing;
mam-audible skipped MAM and foreign-language detection. Ranking now
matches _rankAudible: verbose only gates the count line.

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