Describe the bug
When a rule is run (automatically or manually), movies are correctly added to the collection. On the next run, however, the exact same movies are removed again, even though no changes have been made to the media or the rules. This results in an endless loop of adding and removing items. Because of this, the movies are never actually removed from Radarr, as the countdown for handling is restarted after every removal.
Through troubleshooting, I found that this stems from the Jellyfin library setting "Group films into collections".
When this setting is active, Jellyfin groups movies into BoxSet items and "hides" the individual movie items from the standard library view.
This causes a major issue in Maintainerr as these movies are not checked by the rule. Which means that when Maintainerr successfully adds a movie to a collection in the first run, that movie is now technically "in a collection". Because of the Jellyfin setting, this newly added movie is now hidden from the main library view. On the next rule execution, Maintainerr cannot find the movie anymore, evaluates it as missing, and therefore removes it from the collection. Once removed, it reappears in the library, only to be added again on the next run.
To Reproduce
Steps to reproduce the behavior:
- Go to Jellyfin Admin -> Dashboard -> Libraries -> Display
- Check the box: "Group films into collections"
- Create a Maintainerr rule for the Movie library that relies on Radarr or Seerr data (e.g.,
Radarr.addDate, Seerr.isRequested).
- Run the rule twice.
- Check the logs: you will see that movies get added in the first run and removed in the second run
Expected behavior
Maintainerr should be able to fetch and apply rules to the underlying individual movies within a library, even if Jellyfin's "Group films into collections" display setting is activated globally. It should not lose track of movies once they are added to a Maintainerr collection.
Screenshots
Device (please complete the following information):
- OS: Unraid 7.2.0
- Version 3.3.0
- Server: Jellyfin (10.11.6)
Debug logs
maintainerr-debug.log
Additional context
conversation on Discord in 'Rule Help' Title 'Movies get removed and readded every second run. Logical problem in my rule?'
Describe the bug
When a rule is run (automatically or manually), movies are correctly added to the collection. On the next run, however, the exact same movies are removed again, even though no changes have been made to the media or the rules. This results in an endless loop of adding and removing items. Because of this, the movies are never actually removed from Radarr, as the countdown for handling is restarted after every removal.
Through troubleshooting, I found that this stems from the Jellyfin library setting "Group films into collections".
When this setting is active, Jellyfin groups movies into BoxSet items and "hides" the individual movie items from the standard library view.
This causes a major issue in Maintainerr as these movies are not checked by the rule. Which means that when Maintainerr successfully adds a movie to a collection in the first run, that movie is now technically "in a collection". Because of the Jellyfin setting, this newly added movie is now hidden from the main library view. On the next rule execution, Maintainerr cannot find the movie anymore, evaluates it as missing, and therefore removes it from the collection. Once removed, it reappears in the library, only to be added again on the next run.
To Reproduce
Steps to reproduce the behavior:
Radarr.addDate,Seerr.isRequested).Expected behavior
Maintainerr should be able to fetch and apply rules to the underlying individual movies within a library, even if Jellyfin's "Group films into collections" display setting is activated globally. It should not lose track of movies once they are added to a Maintainerr collection.
Screenshots
Device (please complete the following information):
Debug logs
maintainerr-debug.log
Additional context
conversation on Discord in 'Rule Help' Title 'Movies get removed and readded every second run. Logical problem in my rule?'