Repository navigation
Re-find expired Prowlarr releases like the book search does; simpler Queued and Wanted tables - #58
Merged
Conversation
…rch does
When a queued release's indexer link has expired, the handler re-searches
Prowlarr for the same release. That search was built only from the
download's title, so a book with a subtitle ("Good Omens: The Nice and
Accurate Prophecies of Agnes Nutter, Witch") searched an indexer that ANDs
its terms with the whole thing and found nothing. The download then failed
with "the release could not be refreshed", although a search from the
book's page found the same release straight away.
The refresh now searches like the book's own release search:
- First with the metadata provider's record of the book (from the
download's book_key), with its looser search title and its ISBNs.
- Then the same, widened.
- Last, a book built from the download, searched by its title without the
subtitle and its first author.
It stops at the first search that finds the exact same release, and still
never substitutes a different one.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V88DbAixT45r3AJsyFJchY
A short, common title ("Eric", by Terry Pratchett) searched alone brings
back so many other books ("Eric Brown - Helix") that the release being
refreshed isn't among the results. Searching by hand for "Eric Terry
Pratchett" found it at once.
The refresh now adds that search: the search title and first author as one
query. It runs after the book's own release search and before the search
without content-type categories, which only widens the categories and
doesn't help here. Without a provider book: the download's title without
its subtitle, then title and author.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V88DbAixT45r3AJsyFJchY
Queued (waiting for room)
- No "Queue for download" checkbox: Remove already takes an item out, and an
unticked box quietly stopped it downloading.
- "Waiting for" shows what the automatic check found ("2 unsatisfied slots",
"Freeleech or ratio 2.00: …"), "Last checked" when it last looked, and
"Next check" counts down to the next run. GET /api/saved now says when the
next check is due (next_check_at); the page reads the list again just
after it, so the countdown moves on to the following one.
- Releases are listed one per line: "Ebook, EPUB", "Audiobook, Tony
Robinson".
Wanted
- One Releases column with "Choose releases", which opens the release
picker. Picks saved there put the book in the queue. No Automatic download
column.
- Wanted items that already have releases picked move into the queue
themselves. One whose last automatic download partly failed stays, with
its error, "Choose again" and "+ Get", so it isn't retried blind.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01V88DbAixT45r3AJsyFJchY
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Expired indexer links ("the release could not be refreshed")
book_key.Queued → Waiting for room
GET /api/savednow returnsnext_check_at, and the page re-reads the list just after each check.Wanted
Testing
next_check_at(scheduled vs. quick check), and the list route. With-m "not integration and not e2e", the only local failures are the same 5 environment ones as before.🤖 Generated with Claude Code
https://claude.ai/code/session_01V88DbAixT45r3AJsyFJchY
Generated by Claude Code