Release script.embuary.helper - a (maybe) skin helper service / widgets alternative
#31
(2019-07-19, 07:01)sualfred Wrote: That's not a simple oneliner and should be added to skinshortcuts directly (if it finds a maintainer again. Otherwise it's broken on Matrix too).

Thanks for the reply sualfred. I will see what i can conjure up using only the skinning engine.

Cheers
Mr. V
Reply
#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.embuary.helper/commit/87b50ab5d84a9ef6ce24bff8a2f75e72a3497158
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.
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#33
(2019-07-27, 09:14)sualfred Wrote:
(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

Result examples:
  • $INFO[ListItem.Property(Rating(default))]
  • $INFO[ListItem.Property(Rating(rottentomatoes))]
  • $INFO[ListItem.Property(Votes(default))]
  • etc.

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=1624&type=movie

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

For my provided widgets these values are automatically set and don't need this skin hack. 

Awesome stuff, thanks.
Reply
#34
You're welcome.

I've force pushed this minor change to the open PR for the Kodi repo. Once Rechi merged it it will be available on the Kodi repo, too.
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#35
Just in case it will be overread:
I've edited my post from above with other values.
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#36
@sualfred I think you missed this as well.

plugin://script.embuary.helper/?info=getbydbid&dbid=1624&type=movie

should be

plugin://script.embuary.helper/?info=getbydbid&dbid=$INFO[ListItem.DBID]&type=movie
Reply
#37
Thanks, yes. That's clearer. Was only copying my test code.
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#38
(2019-07-27, 12:52)Hitcher Wrote: @sualfred I think you missed this as well.

plugin://script.embuary.helper/?info=getbydbid&dbid=1624&type=movie

should be

plugin://script.embuary.helper/?info=getbydbid&dbid=$INFO[ListItem.DBID]&type=movie
Would it work  if I replace type=movie with type=tvshow?
Reply
#39
yep
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#40
We've just implemented the Rotten Tomatoes rating to be synced from Emby to Kodi to test it how well this method works:



As long as ListItem.Rating(foo) is not being fixed for Kodi, this is a good working alternative.
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#41
@sualfred, I’ve started to use the jump to letter feature of your script, it’s great and fast with my 6700 movie collection, so thanks ! I have received a question about placing the selected item, once you choose a letter, at the top of the list. Any ideas on how I could do that? I realize this is more of a skinning question than a script question. Thanks for your help.

Also, I noticed that the jump to letter does not work on paths like recently added, or any playlist.  I tried this with Embuary as well, and the jump to letter does not show either in recently added movies, or in any movie playlist.  Is this something you can fix?

Regards,

Bart
Reply
#42
Not possible. But you can achieve something similar with ListItem.SortLetter. Just place it before the list begins.

Edit:
And nope. It only works with a ascending/descending A-Z sorting. I hide it in the other cases. Take a look at my implementation example: https://github.com/sualfred/script.embua...-to-letter
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#43
@sualfred 
If i understand correctly i can now make visible the rotten tomatoes rating outside DialogVideoInfo.
The normal kodi internal rating InfoLabel? (nothing to do with the SkinHelper webservice InfoLabel)
Is it also possible for all other kodi supported extended ratings?

ListItem.Ratings(tomatometerallcritics)
ListItem.Votes(tomatometerallcritics)
ListItem.Ratings(tomatometerallaudience)
ListItem.Votes(tomatometerallaudience)
ListItem.Ratings(metacritic)
ListItem.Votes(metacritic)
ListItem.Ratings(imdb)
ListItem.Votes(imdb)
ListItem.Ratings(themoviedb)
ListItem.Votes(themoviedb)
ListItem.Ratings(metacritic)
ListItem.Votes(metacritic)
ListItem.Ratings(anidb)
ListItem.Votes(anidb)
Reply
#44
It's not limited to Rotten ratings. All possible and available ratings of the library will be filled to the getbydbid hidden list. But to prevent mistakes: I only return what the scraper has added to the database.
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#45
(2019-07-28, 17:21)sualfred Wrote: Not possible. But you can achieve something similar with ListItem.SortLetter. Just place it before the list begins.

Edit:
And nope. It only works with a ascending/descending A-Z sorting. I hide it in the other cases. Take a look at my implementation example: https://github.com/sualfred/script.embua...-to-letter
@sualfred , thanks! I am not sure how to go about using SortLetter.  Any code I could take a look at? Thanks.

Regards,

Bart
Reply
 
Thread Rating:
  • 2 Vote(s) - 5 Average



Logout Mark Read Team Forum Stats Members Help
script.embuary.helper - a (maybe) skin helper service / widgets alternative52