Skip to content

Improve title resolution - #44

Merged
Ryder-C merged 2 commits into
devfrom
improve-title-resolution
Jul 24, 2026
Merged

Improve title resolution#44
Ryder-C merged 2 commits into
devfrom
improve-title-resolution

Conversation

@Ryder-C

@Ryder-C Ryder-C commented Jul 24, 2026

Copy link
Copy Markdown
Owner

retain_titles was overwriting the title cache on every call.

the title cache will now grow and hold older titles.

Ryder-C added 2 commits July 24, 2026 16:40
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
Ryder-C force-pushed the improve-title-resolution branch from a832ab4 to 10de638 Compare July 24, 2026 23:47
@Ryder-C
Ryder-C merged commit 619bfdf into dev Jul 24, 2026
2 checks passed
@Ryder-C
Ryder-C deleted the improve-title-resolution branch July 24, 2026 23:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant