Maintainerr
Maintainerr copied to clipboard
[Bug] The "is monitored" returns null when unmonitored
Describe the bug
The is monitored rule will return null instead of false
when a movie is unmonitored in Radarr (I have not check Sonarr).
To Reproduce Steps to reproduce the behavior:
- Have unmonitored movies in Radarr
- Create a rule using
Radarr - is monitored
equalsfalse
rule - Run the rules
- The rule will fail to match unmonitored Movies
- Change the rule to
Radarr - is monitored
not equalstrue
- The rule will now correctly match the Movies
Expected behavior The workaround with setting the rule to not equal true works but not obvious, so I assume this is a bug. Expected behavior would be to match the rule when the movie is unmonitored.
Screenshots
Current behaviour:
- operator: OR
action: equals
firstValueName: Radarr - is monitored
firstValue: null
secondValueName: boolean
secondValue: 0
result: false
Workaround:
- operator: OR
action: not_equals
firstValueName: Radarr - is monitored
firstValue: null
secondValueName: boolean
secondValue: 1
result: true
Expected behaviour:
- operator: OR
action: equals
firstValueName: Radarr - is monitored
firstValue: 0
secondValueName: boolean
secondValue: 0
result: true
Device (please complete the following information):
- OS: Docker
- Version: 2.0.2
Additional context
None.
I think it's related to what I mentioned in #1113, this happens when the item was never requested in radarr, but instead was detected from a library scan.
Does this also happen if you monitor a movie, then unmonitor it?
Thanks for this report! I believe the underlying reason for this is indeed @Gwindalmir's suggestion. I'll have to catch this scenario since it probably happens a lot.