feat(radarr): trigger search for existing monitored movies without files#2391
Open
Kenshin9977 wants to merge 2 commits intoseerr-team:developfrom
Open
feat(radarr): trigger search for existing monitored movies without files#2391Kenshin9977 wants to merge 2 commits intoseerr-team:developfrom
Kenshin9977 wants to merge 2 commits intoseerr-team:developfrom
Conversation
627160b to
d055a56
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.
Description
When a movie already exists in Radarr and is monitored but has no file, Seerr currently skips it entirely without triggering a search, even when
preventSearchis set tofalse.This PR adds a check in
addMovie()so that whensearchNowistrueand the movie has no file yet, a search is triggered in Radarr viasearchMovie(). This is consistent with the existing!monitoredcode path (line 140-184) which already updates and searches in the same way.Use case: A user requests a movie via Seerr that was previously added to Radarr (monitored, no file). Previously, nothing happened. Now, Radarr will automatically search for it.
How Has This Been Tested?
Tested locally with Radarr running in Docker and Seerr in dev mode (
pnpm dev):addMovie()withsearchNow: truevia a test scriptMoviesSearchcommand for the movieRadarr command confirmation:
{"name": "MoviesSearch", "body": {"movieIds": [1]}, "status": "completed"}pnpm typecheck:serverpassespnpm buildpassesChecklist:
pnpm buildpnpm i18n:extractAI Disclosure
This PR was written with assistance from Claude Code. The fix logic and testing were reviewed and validated by a human.