github Listenarrs/Listenarr v1.8.5-canary
Canary 1.8.5

pre-release2 hours ago

Refs #1173, #801.

SearchAndDownloadAsync made one SearchAsync call and stopped on an empty result. The author-free retry from #1072 only exists in the scheduled search, so the Search button missed books whose release names omit the author. It now retries once with the title alone, only when the first search returned nothing and the title-only query differs. At this tag "returned nothing" includes indexer timeouts and errors, because SearchAsync swallows them and takes no cancellation token, so a timeout can trigger the retry against the same indexers.

Testing

New DownloadService_AuthorFreeFallbackTests (book: A Princess of Mars, Edgar Rice Burroughs).

  • Fail without the change, pass with it: empty full query then a title-only hit is submitted; both queries empty makes exactly two calls and reports "No search results found".
  • Controls that pass with and without: a result on the full query searches with the author first and never retries; a book with no author does not repeat the same query; an exception thrown by the first search propagates (there is no catch-and-retry in DownloadService; this does not show that a real search cancels).
  • Full backend suite: 5659 passed, 0 failed, 153 skipped (unmodified base 5647/0/153; the 12 extra passes are the 12 new tests, 5 in this PR and 7 in the stacked one). npm run --silent format:backend:check (the CI command, = dotnet format listenarr.slnx --no-restore --verify-no-changes --verbosity minimal) exits 0 with no output. The suite and format numbers were measured on the stacked head of the second PR, not on this head alone; this branch is a subset of it, and only its own 5 tests were run separately.

What the tests cannot catch: they mock ISearchService, so they prove the call pattern and the scoring handoff, not what a real indexer returns for the title-only query. The retry is one extra search, which is one request per enabled indexer; no request budget exists at v1.8.4 (`IndexerS...


Automated Canary build

Don't miss a new Listenarr release

NewReleases is sending notifications on new releases.