• 1
  • 4
  • 5
  • 6
  • 7
  • 8(current)
Release script.skinvariables - Construct skin variables and perform other skin functions
(Yesterday, 04:58)mikeSiLVO Wrote:
(Yesterday, 01:53)jurialmunkey Wrote:
(2025-01-31, 12:56)mikeSiLVO Wrote: Noticed one thing with ratings.
Any ratings in my NFO's that don't have 10 or 100 as the max show inaccurate numbers.

If you're talking about being off by fraction (e.g. 5.9999 instead of 6.0), we covered this before here: https://github.com/jurialmunkey/script.s.../issues/50

Kodi stores/calculates the ratings as floats and floating point calculations are inaccurate. Not much I can do about it as that's the data coming via JSON RPC.

No, the actual values are off, the max="5" ones are exactly double.
i.e. 3.6 is 7.2., 2.9 is 5.8, etc. I should have been more specific, sorry.

Yes, that's how Kodi stores them. It divides value by max and multiplies by 10 and stores that value out of 10 in the Db.

I'm not modifying the values at all. This is what Kodi is returning via JSON RPC.
Arctic Fuse 2 - Alpha now available. Support me on Ko-fi.
Reply
  • 1
  • 4
  • 5
  • 6
  • 7
  • 8(current)

Logout Mark Read Team Forum Stats Members Help
script.skinvariables - Construct skin variables and perform other skin functions0