[FEATURE] Search newly released books automatically on release day, newest first
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 38/100
Direzione di ricerca
Start with the named entry points in TaskManager.cs, BookSearchService.cs, BookRepository.cs, and RefreshAuthorService.cs, then trace the existing task settings and tests for scheduled searches. Implementing this request spans scheduling, configurable settings, release date filtering and ordering, and search deduplication; done means the listed acceptance criteria pass for both audiobook and ebook monitoring.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Is your feature request related to a problem? Please describe.
Books by monitored authors take too long to be found after release. Chaptarr already learns about upcoming books before they come out:
- Author refresh adds books with a future release date.
- Metadata profiles keep future books even before they have ratings (MetadataProfileService.cs#L544).
- Monitor New Items monitors them.
But nothing searches for those books when their release date arrives. On develop (026515b) it works like this:
- A book is searched automatically only when it is first added. After a refresh, Chaptarr searches newly added books that release before tomorrow (BookAddedService.cs#L123). A book added before its release date is skipped then, and nothing revisits it on release day.
- There's no scheduled missing search (see #144). The only recurring tasks that look for books are RSS Sync (every 15 minutes by default) and Refresh Author (every 24 hours, TaskManager.cs#L145-L146).
- So on release day, RSS is the only automatic path. If a release isn't matched while it's in the indexer's recent feed, the book stays in Wanted until someone searches for it by hand. That can happen because of a title variation, an upload days after the release date, or an indexer with RSS turned off.
- Search All Missing doesn't put new releases first. Missing-search targets are sorted by author ID, then book ID (BookRepository.cs#L599-L600, BookSearchService.cs#L256). Within each author, books are sorted by last search time (BookSearchService.cs#L67). A book that came out today waits behind the whole backlog.
- Every author is checked once a day, however active they are. The scheduled refresh runs the bulk change check for all authors every 24 hours (RefreshAuthorService.cs#L3254-L3256). An author with a book due next week isn't checked any more often, and the interval can't be changed.
Describe the solution you'd like
- A "Search Recent Releases" scheduled task.
- What it searches: monitored books with no file whose release date is between N days ago and tomorrow. N defaults to 14 and is configurable.
- When it runs: every few hours, with an interval setting and an on/off toggle next to the RSS Sync interval.
- Order: newest release date first.
- What it skips: books already searched within the last interval (
LastSearchTimealready exists), and books already in the queue (Missing search already does this). - Because the window is small, each run is a handful of searches, not the whole backlog.
- Newest-first ordering for Missing search. Search All Missing should process books by release date, newest first, with undated books last, instead of by author ID. So should #144's scheduled search, if it's added.
- (Optional) Check active authors more often. Authors with a monitored book releasing within ±30 days could get the bulk change check every 6–12 hours instead of every 24. Newly announced books and changed release dates would then show up sooner.
Why a release window, rather than relying on RSS
Book uploads are less predictable than RSS assumes. They can appear days after the publication date, under titles that vary from the metadata. A short window after release covers the time when an upload is most likely to appear. It also keeps the number of searches per run small.
Acceptance criteria
- A monitored book with no file and today's release date is searched within one task interval, even if RSS never matched it.
- Books releasing after tomorrow aren't searched by the new task.
- Books released before the window are left to the regular Missing search.
- No book is searched more than once per interval.
- Search All Missing processes the newest release dates first.
- Turning the task off restores today's behavior.
Describe alternatives you've considered
- Wanted → Missing → Search All: it searches the whole backlog in author order. That's heavy on indexers, and new releases come late in the run.
- #144 (a scheduled missing search): it helps, but it re-searches the whole backlog every run. This request is lighter. It could also be a "recent releases only" mode of the same task.
- A scheduled script against the API (list recent missing books, then send
BookSearchwith their IDs): this works, but every user has to build their own. - #77 (grab budgets): it would pair well with any automatic search.
Additional context
The code references are against develop at 026515b. The calendar API and iCal feed already query books by release date (CalendarFeedController.cs#L34), so the data the window needs is already there.
Media Type
Does this feature apply to:
- Audiobooks
- eBooks
- Both
Monitoring is per media type, so the window should respect audiobook and ebook monitoring separately, the way Missing search already does.
Use Case
I follow authors and let Chaptarr monitor their upcoming books in advance. I want each book grabbed on or near its release day without remembering to search. I also don't want to run a full backlog search that hits my indexers for a large number of older titles just to catch this week's releases.
Drafted with help from Claude Code (Claude Opus 5.5, claude-opus-5-5). The code references were checked against develop at 026515b.
- Lingua principale
- C#
- Stelle
- 664
- Fork
- 48
- Merge medio
- 5h 24m
- PR unite (30g)
- 5
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di Chaptarr/chaptarr
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 63/100
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di Chaptarr/chaptarr
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
MPCoreDeveloper/SharpCoreDB#531 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
jsboige/CoursIA#29306 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
martin-stromberg/FinanceManager#628 ·
I maintainer di solito rispondono entro 1 giorno
-
Left Hand Margin Too NarrowAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
builtbybel/FluentCleaner#266 ·
I maintainer di solito rispondono entro 2 giorni
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
I maintainer di solito rispondono entro 1 giorno