fix: title lookup asks every provider and ranks exact title matches first #94
No reviewers
Labels
No labels
bug
critical
ebook-branch
high
low
main
medium
release-blocker
security
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
jfro/fuzzy_catalog!94
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/title-lookup-all-providers"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Refs #91 (Nye's F3: "The Hugo Winners - Volumes I & II" misses its exact Hardcover match). Stacked on #86 (
feat/title-author-lookup); merge right after it.Cause:
BookLookuptitle search returned the first provider that answered.config/config.exsorders providers Open Library, Hardcover, Google, LoC, so any Open Library near-miss hid Hardcover's results.Fix (title and title+author paths only; ISBN/UPC unchanged):
Task.async_stream, 8s per provider,on_timeout: :kill_task; overridable via:book_lookup, :title_search_timeout).&=and), then #86's author ranking, capped at 20.:provider(its provider's name) for #91's UI.Tests: Nye's proof
book_lookup_hugo_winners_test.exs(fails 0/2 on #86, passes here), newbook_lookup_all_providers_test.exs(merge/dedupe/order, Hardcover not configured + failing provider, timeout, cap, normalization). Existing stubs updated to report to the test process via$callers.mix precommit: 653 tests pass.b6b81e7c6c057eac1af5