github Listenarrs/Listenarr v1.10.8-canary
Canary 1.10.8

pre-release56 minutes ago

Summary

The automatic search never queues a download for a book that has a series membership its own Series/SeriesNumber fields do not repeat, most commonly a book in a second series. It finds results, scores them, accepts one, and then drops it at the last check, on every pass.

AutomaticSearchService scores each book as GetMonitoredAudiobooksForSearchAsync loaded it. That query includes the quality profile but not SeriesMemberships. Just before StartDownloadAsync, IsCurrentAsync rebuilds the target fingerprint from GetByIdSnapshotAsync, which does include the memberships. BookMatchContext.From puts every membership into the fingerprint along with the book's own Series/SeriesNumber:

  • With one series, the membership and the Series field give an equal series reference (ReleaseSeriesReference is a record), Distinct() merges them, and the two fingerprints match.
  • With a second series, that series exists only as a membership (the same holds for any membership the Series fields do not repeat). The fingerprint built from the selection lacks it, the one built from the snapshot has it, they never match, and ProcessAudiobookAsync returns 0 without starting the download.

Nothing about the book changed, so this is not the staleness the check exists to catch.

Changes

Fixed

  • GetMonitoredAudiobooksForSearchAsync now includes SeriesMemberships, so the fingerprint the search assesses and the one IsCurrentAsync rebuilds are built from the same facts.

Changed

  • Apart from that include, the query is unchanged. It moves into a new partial, AudiobookRepository.AutomaticSearch.cs, because AudiobookRepository.cs is already at the 500-line cap that BackendArchitectureTests enforces. This follows the precedent of AudiobookRepository.Blocklist.cs.

Added

  • AudiobookRepositoryAutomaticSearchSelectionTests: seeds a monitored book in one series and in two, selects it through GetMonitoredAudiobooksForSearchAsync...

Automated Canary build

Don't miss a new Listenarr release

NewReleases is sending notifications on new releases.