Release script.embuary.helper - a skin helper service / widgets alternative - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12) +---- Forum: Skin helper addons (https://forum.kodi.tv/forumdisplay.php?fid=300) +---- Thread: Release script.embuary.helper - a skin helper service / widgets alternative (/showthread.php?tid=345471) |
RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - Mr. V - 2019-07-20 (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 RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-07-27 (2019-07-18, 13:43)Edworld Wrote: This is not a request, just a question. I was wrong, sorry. Added to GitHub: https://github.com/sualfred/script.embuary.helper/commit/87b50ab5d84a9ef6ce24bff8a2f75e72a3497158 https://github.com/sualfred/script.embuary.helper/commit/5061343499d6b7e9b9c6946c20455d8a8acbb640 Result examples:
I've switched to the correct .setRating function. So the results are stored correctly now:
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. RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - Hitcher - 2019-07-27 (2019-07-27, 09:14)sualfred Wrote:(2019-07-18, 13:43)Edworld Wrote: This is not a request, just a question. Awesome stuff, thanks. RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-07-27 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. RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-07-27 Just in case it will be overread: I've edited my post from above with other values. RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - Hitcher - 2019-07-27 @sualfred I think you missed this as well.
should be
RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-07-27 Thanks, yes. That's clearer. Was only copying my test code. RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - Edworld - 2019-07-27 (2019-07-27, 12:52)Hitcher Wrote: @sualfred I think you missed this as well.Would it work if I replace type=movie with type=tvshow? RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-07-27 yep RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-07-28 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. RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - bsoriano - 2019-07-28 @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 RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-07-28 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.embuary.helper/wiki/Widgets:-Special-content#jump-to-letter RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - chrissix666 - 2019-07-29 @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) RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-07-29 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. RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - bsoriano - 2019-07-29 (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.@sualfred , thanks! I am not sure how to go about using SortLetter. Any code I could take a look at? Thanks. Regards, Bart |