This PR collects three fixes to how Listenarr queries indexers and how it gates what they return. Two of them were open as #921 and #1010, and the third is new: one shared query builder for the automatic sweep and the download path. Each fix is one commit, so any of them can be dropped or cherry-picked on its own. Everything is on top of canary at a630572e9.
| Commit | Original PR | Issue | Effect |
|---|---|---|---|
7f07e631a
| #921 (folds in closed #863 and #985) | Fixes #862, Fixes #977, Refs #899 | A scoring batch looks up each indexer once instead of from every parallel task; Indexer.MinimumAge and Indexer.MaximumSize are applied; age is measured in UTC; profile size limits of 2048 MB and up stop overflowing
|
7e7537ce2
| #1010 | none | MinimumSeeders applies to torrents again ("Torrent" vs "torrent")
|
538c349bc
| new | Refs #848 | Both search paths build the query through one builder: title plus first author, no series, no "(Unabridged)" |
09a70930e
| comment only | none | Comment-only: fixes a code comment from 7e7537ce2 that points at a check which 7f07e631a moves to another file
|
02a8bc948
| comment only | none | Comment-only: the builder's remark on edition annotations now says that editions of one work share a query |
1. Batch indexer lookup, indexer age and size limits, profile size overflow (7f07e631a, from #921)
Batch lookup (#862). At a630572e9, QualityProfileService.ScoreSearchResults scores the whole batch with Task.WhenAll (QualityProfileService.cs:290), and each task calls _indexerRepository.GetByIdAsync on the same scoped repository (SearchResultScorer.cs:125). That puts concurrent operations on one DbContext. The scorer catches the resulting exception and logs it at Debug, so the result keeps going with indexerRetention at 0 (SearchResultScorer.cs:120) and without the Usenet correction at :129 (read). ScoreSearchResults now resolves the ...
Automated Canary build