Improve title resolution - #44
Merged
Merged
Conversation
retain_titles pruned the Sonarr/Radarr title caches down to the IDs seen in a single RSS-sync page, wiping entries cached by other pages and by tv/movie searches. That caused repeated lookups against Sonarr/Radarr and a cache-file rewrite on every generic search. The caches only hold small title strings, so they are now left to grow with the set of titles actually searched.
The generic search resolved feed titles one torrent at a time, so a cold cache meant up to a page of serial Sonarr/Radarr round trips. Torrents are now mapped to unique (tvdb, season)/tmdb lookup keys first, resolved concurrently (capped at 8 in-flight lookups), then grouped. Per-request title memoization falls out of the dedup, so the ad-hoc HashMap caches are gone.
Ryder-C
force-pushed
the
improve-title-resolution
branch
from
July 24, 2026 23:47
a832ab4 to
10de638
Compare
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.
retain_titleswas overwriting the title cache on every call.the title cache will now grow and hold older titles.