Maintainerr icon indicating copy to clipboard operation
Maintainerr copied to clipboard

[Bug] The "is monitored" returns null when unmonitored

Open RouNNdeL opened this issue 1 year ago • 2 comments

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:

  1. Have unmonitored movies in Radarr
  2. Create a rule using Radarr - is monitored equals false rule
  3. Run the rules
  4. The rule will fail to match unmonitored Movies
  5. Change the rule to Radarr - is monitored not equals true
  6. 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.

RouNNdeL avatar Feb 12 '24 21:02 RouNNdeL

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?

Gwindalmir avatar Aug 07 '24 08:08 Gwindalmir

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.

jorenn92 avatar Aug 09 '24 09:08 jorenn92