Release script.embuary.helper - a skin helper service / widgets alternative
#32
(2019-07-18, 13:43)Edworld Wrote: This is not a request, just a question.

You mentioned in your first post that your helper doesnt get the information from the web which makes it a lot faster and for that reason you would not have live rotten tomatos ratings, etc.

for those of us who have the different ratings stored in our database for movies and tvshows, would you be able to display those ratings in different views and not just dialogvideoinfo using a feature in your helper?

I was wrong, sorry.

Added to GitHub:
https://github.com/sualfred/script.embua...72a3497158
https://github.com/sualfred/script.embua...8a8acbb640

Result examples:
  • $INFO[ListItem.Property(Rating(default))]
  • $INFO[ListItem.Property(Rating(rottentomatoes))]
  • $INFO[ListItem.Property(Votes(default))]
  • etc.
Edit
I've switched to the correct .setRating function. So the results are stored correctly now:
  • $INFO[ListItem.Rating(rottentomatoes)]
  • $INFO[ListItem.Votes(rottentomatoes)]
  • $INFO[ListItem.Rating(tmdb)]
  • $INFO[ListItem.Votes(tmdb)]

Important: Kodi only supports floats up to 10.0. Since Rotten is using 0-100 I'm going to convert the values. Example -> "56" = "5.6"


To get these values somewhere outside of the info dialog, like in the myvideonav.xml, you have to add a hidden container with a path like this:
Code:
plugin://script.embuary.helper/?info=getbydbid&dbid=$INFO[ListItem.DBID]&type=movie

Get the value:
$INFO[Container(my-hidden-container-id).listitem.property(Rating(default))]
$INFO[Container(my-hidden-container-id).listitem.Rating(rottentomatoes)]

For my provided widgets these values are automatically set and don't need this skin hack.
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


Messages In This Thread
RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - by sualfred - 2019-07-27, 09:14
Logout Mark Read Team Forum Stats Members Help
script.embuary.helper - a skin helper service / widgets alternative3