2019-07-27, 09:14
(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.
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.