using arithmetic operator in skin ?
#1
Hello all...

in Kodi XML for skinning,
is possible to use arithmetic operator to add, sub, divide or mutiply any value by a number for exemple ?
Any function ?

for example :

Quote:<label>($VAR[myvalue]*8/100)</label>

myvalue : 600

label would be : 600*8/100 = 48

thanks
Intel NUC 5YPPH-8Go-SSD120go-external drive 1To
Windows 10 PRO - Kodi Krypton 17 - IconMix
Reply
#2
Nope, always wanted to see this but there are no math options available.
Main: Lancool II Mesh  - Ryzen 9 5900x - MSI x570 Unify - Zotac RTX 3080 AMP HOLO - 32GB Trident Z Neo 3600 CL16 -  EVO 960 M.2 250GB / EVO 940 250GB / MX100 512GB /  Crucial P1 2TB / WD Blue 3D Nand 2TB 
Sound: Saxx AS30 DSP - Beyer Dynamic Custom One Pro 
TV: Nvidia Shield 2019 Pro- Adalight 114x LEDs - Sony 65XG9505 - Kodi / Emby - Yamaha RX-V683 - Heco Victa 700/101/251a + Dynavoice Magic FX-4
Server: i3 Skylake - 8GB - OMV4 - 22TB Storage
Reply
#3
Ok ;(
May be by creating an arithmetic addon and get result in value return… .but it's an heavy solution ;(
Intel NUC 5YPPH-8Go-SSD120go-external drive 1To
Windows 10 PRO - Kodi Krypton 17 - IconMix
Reply
#4
You could write simple python script to do this.
Maybe even convince marcel@Skin.helper script to add a script function Smile

edit: I did a simple math daemon in colorbox to process episodes watched percentage at show/season level, here is commit [sorry if not python literate!]: https://github.com/BADMS/script.colorbox...148a3df1d1
Reply

Logout Mark Read Team Forum Stats Members Help
using arithmetic operator in skin ?0