Skip to content

fix(search): fall back to keyword search when author doesn't resolve to an Audible author page#750

Draft
kevinheneveld wants to merge 2 commits into
Listenarrs:canaryfrom
kevinheneveld:fix/audible-author-keyword-fallback
Draft

fix(search): fall back to keyword search when author doesn't resolve to an Audible author page#750
kevinheneveld wants to merge 2 commits into
Listenarrs:canaryfrom
kevinheneveld:fix/audible-author-keyword-fallback

Conversation

@kevinheneveld

Copy link
Copy Markdown
Contributor

Summary

  • AUTHOR_TITLE search required the author name to match an Audible author page via AudibleAuthorPageCollector; when it didn't (e.g. a whisper-transcribed author name with STT spelling errors — "Whisher" for the real "Wisher"), the whole search returned nothing with no other recourse, even though the book was genuinely on Audible
  • Confirmed live: "The Hidden Tower" by James E. Wisher (misheard as "Whisher") failed in all 4 regions, with "No author ASIN found for author" logged each time
  • AudibleService.SearchByTitleAndAuthorPagedAsync already implements exactly this fallback (a plain keyword title+author search that doesn't require an author-page match) for its own single-page callers, but it was never wired into the AUTHOR_TITLE branch used by the "find correct match" / advanced search flow
  • Call it when the author-page lookup comes back empty

Test plan

  • dotnet build — clean
  • dotnet test — 1189/1189 passing

Draft per PR-pacing convention (several PRs already active); will promote when a slot frees up.

…resolve to an Audible author page

AUTHOR_TITLE search required the author name to match an Audible
author page via AudibleAuthorPageCollector; when it didn't (a
whisper-transcribed author name with STT spelling errors, e.g.
"Whisher" for the real "Wisher"), the whole search returned nothing
with no other recourse — even though the book was genuinely on
Audible under the correctly-spelled author. Confirmed live: "The
Hidden Tower" by James E. Wisher (misheard as "Whisher") failed in
all 4 regions with "No author ASIN found for author" logged each
time.

AudibleService.SearchByTitleAndAuthorPagedAsync already implements
exactly this fallback (a plain keyword title+author search that
doesn't require an author-page match) for its own single-page
callers, but it was never wired into the AUTHOR_TITLE branch used by
the "find correct match" / advanced search flow. Call it when the
author-page lookup comes back empty.
…to zero results

Audible's "author" query parameter is a filter, not a fuzzy hint:
combined with title, it can zero out results the title alone would
find, when the author string doesn't read as close enough to a real
catalog author. Confirmed live: "the hidden tower" + author "James E.
Whisher" (the real "Wisher", misheard) returned 0 combined results
from Audible directly, while title alone returned 5, including the
correct book.

Add one more fallback tier in AudibleAuthorSearchWorkflow: when the
title+author keyword search (added in the previous commit) also comes
back empty, retry title-only. This is the manual "find correct match"
review flow, so the user still picks the right candidate from the
list rather than anything being auto-applied.
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