shemanaev / jellyfin-plugin-media-cleaner

Automatically delete played media files after specified amount of time.
MIT License
71 stars 1 forks source link

[Feature]: Tell Sonarr unmonitor a series when it is all deleted #43

Open xiNeRoar opened 5 months ago

xiNeRoar commented 5 months ago

Describe the feature you'd like added

When all episode in a series is deleted, tell Sonarr to unmonitor the series as well.

Additional context

Sonarr cannot auto-unmonitor a series even if users delete all episodes in that series. using media cleaner with sonar in this sense will cause numerous monitor series with 0 episodes on sonar which is not desired.

The developer of Sonarr says it is an intended behaviour because they won't know if users want to unmonitor the series or simply empty all the watched episodes and be ready for future seasons. So they won't implement an auto-unmonitored series function in the foreseeable future.

Since this is the case, I would like to know if Media Cleaner can add the ability to do so because users can always re-add series later. For example, a good current season of a series doesn't guarantee a good future season, then if the user is maintaining a fairly huge library of series, he/she needs to manually look through all the series and spot the one that is unwanted and unmonitor them.

JamsRepos commented 5 months ago

Have you tried /settings/mediamanagement and using the

image

setting? I do it, it works perfectly fine. I don't think the plugin needs to talk to sonarr.

xiNeRoar commented 5 months ago

Have you tried /settings/mediamanagement and using the image setting? I do it, it works perfectly fine. I don't think the plugin needs to talk to sonarr.

Yes i do. But it will only delete and unmontior the episode. It will left the series itself monitored with zero episodes in it. This will cause a lot of unwanted series monitored if you regularly import a fair amount of series from list. And the only way to clear them is to go through all series in sonarr and click into them one by one to see which one has no episode since there is no visual cue in the list view to shows which series has no episode in it.

JamsRepos commented 5 months ago

I don't see much of a logistical issue if they're left in there unmonitored. They aren't going to do anything. There is a visual cue to see how many episodes there is within sonarr, look at the options top right and turn on progress bar. image