#is this a bug or have I misunderstood how Special Text Variables work?

1 messages · Page 1 of 1 (latest)

regal brook
#

I'm working on an overlay using Letterboxd ratings, stored in the Audience Rating field, with the <<audience_rating/>> special text variable - as described in the wiki: "audience rating on a 5 point scale (8.6 shows as 4.3)"

https://metamanager.wiki/en/latest/metadata/overlay.html#special-text-variables

When the overlay is rendered the score is rounded down to the nearest .50

Here's my Overlays.yml

overlays:
  audience_rating:
    overlay:
      name: text(<<audience_rating/>>)
      horizontal_offset: 412
      vertical_offset: 1358
      font: fonts/Inter-Bold.ttf
      font_size: 63
      font_color: "#FFFFFF"
      back_color: "#00000099"
      back_padding: 15
      back_radius: 30
      back_width: 270
      back_height: 80
    plex_all: true

And here's an example movie:
https://letterboxd.com/film/klute/

Currently rated 3.8 on Letterboxd
Stored as 76% Audience Rating (correct)
Overlay renders as 3.50 (3.8 expected - note the second decimal place also)

I'm on PMM 1.18.3 with Docker

A high-priced call girl is forced to depend on a reluctant private eye when she is stalked by a psychopath.

regal brook
#

having the same issue with <<critic_rating/>> and <<user_rating/>> so its not specific to that field

regal brook
#

I'm comfortable moving this over to github issues if y'all agree it's not working as expected

exotic sky
#

can you run on nightly just to make sure this isn't already fixed?

regal brook
#

no sweat. still occurs on Version: 1.18.3-nightly63 (Docker)

exotic sky
#

thanks

#

<@&938443185347244033>

#

I've asked Sohjiro to review this whenever he's able to

analog turtle
#

lol i accidently make it an int before dividing so it loses all decimals

regal brook
#

that sounds familiar 😂 looking forward to the fix

exotic sky
#

@regal brook FYI this has been fixed locally and will be part of the next nightly build.

exotic sky
#

@regal brook do you want to test?

#

you'll need to be on the nightly branch 🙂

regal brook
#

looks great, thanks everyone

exotic sky
#

🎉