#Apply highest of two values as a text overlay?

1 messages · Page 1 of 1 (latest)

olive surge
#

I want to compare ratings and use the highest value as a rating.
I have tried to set the plex_search to critic_rating.gte: audience_rating, but it seems to require a number as opposed to a variable representing a number.

sand notch
#

I'm not sure I understand the question

#

If you have two overlays which can apply to a movie, you can use a group and weighting to make one the priority?

#

If that's what you're asking

#

In the below example, if you have a movie with both 1080P and 4K, the 4K overlay will apply because it has the higher rating (50) within the group (Resolution)

overlays:
    1080p:
    plex_search:
      all:
        resolution: 1080p
    overlay: 
      name: 1080p
      group: Resolution
      weight: 40
      
  1080p-HDR:
    plex_search:
      all:
        resolution: 1080p
        hdr: true
    overlay: 
      name: 1080p-HDR
      group: Resolution
      weight: 50
olive surge
#

I have an audience_rating overlay and a critic_rating overlay. I want to apply only the highest number of these. If the audience rated it higher, use that. If critics rated higher, use that.

sand notch
#

I don't think YAML lets you do calculations like that

olive surge
#

Gotcha, I was hoping there was a way to ignore the number requirement. I can run a python Plex search where critic_rating is higher than audience_rating and get results. It sounds like this would be more of a feature request then.

peak temple
#

this would be a FR if you wanna make one its decently obscure so no guarantees it gets added anytime soon

half saddle
#

If I am trying to make top10 take priority over top100 weighting should work right?

peak temple
#

Yes please open youre own post for support