-
-
Notifications
You must be signed in to change notification settings - Fork 246
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: remove requests of unmonitored movies/seasons during scan #817
base: develop
Are you sure you want to change the base?
Conversation
Converted to draft as the title states "WIP". Once it's ready feel free to make this pr ready for review |
@Fallenbagel Thanks I didn't think about the Draft feature This is a WIP but it's basically working as I'd expect. Only drawback is that if you have lots of Unmonitored movies in Radarr the scan should be slower, as it will request each unmonitored movie in db every time. Let me know if you have some thoughts about this |
FYI I've been using this for months and it works as expected. A more complete monitoring status support wouldn't be very useful imo, at least I didn't encounter any use case |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this should be merged if it's only Radarr. Could you implement the same logic for Sonarr seasons?
And shouldn't there be a setting to enable/disable this behavior? You may have unmonitored a movie/tv show but still want to keep it as requested.
This pull request has merge conflicts. Please resolve the conflicts so the PR can be successfully reviewed and merged. |
00d383a
to
3e24708
Compare
@gauthier-th I've added the Setting, disabled by default Also I've tried to add the same behaviour for Sonarr, but I encountered an issue:
Also, not really related to this issue afaik, but still looks like the same kind of problem: |
3e24708
to
07ccea1
Compare
I'll squash the commits when everything's approved Meanwhile any hint on Sonarr weird behaviour is welcome! I probably missed something, don't know much about the project nor Typescript |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like the way things are done are not consistent between Radarr and Sonarr.
Why do you change the status of the Media entity for movies while you remove the SeasonRequest for series?
It may be linked to the issue you experienced.
server/lib/scanners/baseScanner.ts
Outdated
: settings.main.removeUnmonitoredFromRequestsEnabled && | ||
!season.monitored && | ||
season.episodes == 0 | ||
? MediaStatus.UNKNOWN |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is this change necessary? Isn't the Sonarr scanner job enough?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to be necessary. It is part of Sonarr scanner job though!
- At the beginning of the job I check if there is any SeasonRequest and delete it if necessary
- And here I check the Status of the Season, as every Season is parsed and its Status checked/updated, it should set un-monitored season with no file to UNKNOWN (as for Movies)
There are several jobs that update the status of a Media: Radarr/Sonarr jobs, and Jellyfin/Emby/Plex jobs, hence the comment about competing jobs. |
For clarity, there are two potential "problems" with un-monitored medias that I've been trying to fix:
|
I still don't get the logic, why "If the season is already marked as available, we force it to stay available"? (season.totalEpisodes === season.episodes && season.episodes > 0) ||
existingSeason.status === MediaStatus.AVAILABLE And I don't get why we don't check anything on this second line (i.e EDIT: Well I did try this simple change, and it seems to fix this issue for one season that was always shown as Available before (although it has been deleted some time ago) |
@gauthier-th I went with your recommendations, and marked as resolved the comments I was sure about. Not sure why/how, but during my last tests the problem seems fixed!
with the same Season/ID, twice in the log. Which means the first time didn't work, right? Is there something I should know about async deletion in typescript or something? This seems a bit random |
94313cd
to
7e9d84d
Compare
There is another job, "Media Availability Sync" that runs and mark the media as unavailable if necessary.
It could come from your Let me review it one more time with the change you made and with your comments in mind. |
Description
Quick & easy first implementation of Monitoring status support in Radarr:
When a movie - which was monitored before - is unmonitored, it won't appear as "requested" in Jellyseerr anymore
Issues Fixed or Closed