jorenn92 / Maintainerr

Looks and smells like Overseerr, does the opposite. Maintenance tool for the Plex ecosystem
https://maintainerr.info
MIT License
649 stars 12 forks source link

Radarr - File Size rule executor always returns null #1161

Open utrack opened 1 week ago

utrack commented 1 week ago

Describe the bug Every rule with Radarr's size returns null as a size

To Reproduce Steps to reproduce the behavior:

  1. Add the rule with Radarr's file size > 100mb
  2. Test the rule via Collections>(collection)>Test Media
  3. firstValue in a rule is null

Expected behavior firstValue of the operation should = file size in MB.

Screenshots image image

Device (please complete the following information):

Additional context JSON of the rule executor:

    - id: 1
      result: false
      operator: AND
      ruleResults:
        - operator: OR
          action: bigger
          firstValueName: Radarr - File - size in MB
          firstValue: null
          secondValueName: number
          secondValue: 100
          result: false
    - id: 2
      result: true
      operator: AND
      ruleResults:
        - operator: OR
          action: not_equals
          firstValueName: Radarr - File - file path
          firstValue: /mnt/media-library/plex/Movies/2001 A Space Odyssey (1968)/2001 A
            Space Odyssey (1968) {imdb-tt0062622} {languages-
            {edition-Remastered} [4K Remaster][Bluray-1080p][EAC3
            5.1][x264]-hallowed.mkv
          secondValueName: text
          secondValue: asd
          result: true
jorenn92 commented 3 days ago

Hey, thanks for your report! It appears your Radarr instance is not returning the expected 'sizeOnDisk' property needed by Maintainerr.

Is there anything of use in the Maintainerr log while testing this?

Could you return the response from a manual Radarr lookup through the API for this particular movie? You should be able to do it with the 'movie lookup' endpoint, and with the term 'tmdb:62' (62 being 2001 A Space Odyssey's TMDB ID)

https://radarr.video/docs/api/#/MovieLookup/get_api_v3_movie_lookup