2019-07-17, 10:53
(2019-07-17, 05:15)edjalmo Wrote:(2019-07-16, 20:27)bsoriano Wrote: it would be possible, but it would require a lot of code. Most of the skins that show the info as a % are showing data from skin helper service, which I will not do. I chose to show the ratings as they are in the Kodi db.I didn't know that.
If you know of a skin that is showing the ratings as % and not using skin helper service, please let me know so I can look at how it can be done. Thanks.
I thought an simple multiplication could solve that.
I did a little search to saw if is possible to do math operations in XML files. In this search I found about XSLT files (https://en.wikipedia.org/wiki/XSLT), and for what I have understand this is like a CSS for HTML, and it's possible to make math operations using this (and for what I have understand too can be add inside a XML file too). I don't know if Kodi support this.
I found this exemple here: https://stackoverflow.com/questions/4369...d-then-sum
The solution 1 sounds very simple!
I tried made this with your ratings in skin but without sucess. But I understand nothing about XML (I just know how to edit positions) and XSLT.
But maybe you can undestand.
But if you think this is difficult or a waste of time just to show in %, no problem!
@edjalmo, thanks! Unfortunately, those math operations are not possible within the Kodi skinning engine.
Regards,
Bart