Kodi Community Forum
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)

Pages: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28


RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-08-06

tomatometerallcritics or tomatometeravgcritics ? ^^


RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - bsoriano - 2019-08-06

(2019-08-06, 16:48)sualfred Wrote: tomatometerallcritics or tomatometeravgcritics ? ^^

@sualfred , as far as I know, tomatometerallcritics.

Regards,

Bart


RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - Hitcher - 2019-08-06

https://www.rottentomatoes.com/about#whatisthetomatometer

Just added them myself.

https://github.com/HitcherUK/skin.ftv/blob/8c964f1a104247adad6e75de95cc39dadc7db29c/xml/MyVideoNav.xml#L663-L718


RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-08-06

Ok, thank you guys. I'll change it to tomatometerallcritics and we will also adjust that in the Emby for Kodi script.


RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - Hitcher - 2019-08-06

I'm trying to work out if this is possible with either this or jurialmunkey's script.

I'm using the 'Get cast' method to open a list of actors in a video which displays their real name and character name but I'd also like to include 4 movies/TV shows each one has been in when that person is the selected item of the list. Now I've tried using 'Get more movies starring with' but that requires a ListItem.DBID value which the aforementioned list unfortunately doesn't provide. I think plugin.video.themoviedb.helper requires a tmdb_id for the same query.

Any ideas or just not possible?

Thanks.


RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-08-06

Jurialmunkey added a function for this:
https://forum.kodi.tv/showthread.php?tid=346034&pid=2874999#pid2874999

Edit:
But I'm not quite sure if he has added the field information that tmdb returns for searches based on a query.

@jurialmunkey 
Do you added the "known_for" information to this output? 
(see https://api.themoviedb.org/3/search/person?api_key=867ff90cfaeef855e39cf1fb3f56edf4&language=en-US&query=bruce%20willis&page=1&include_adult=false)

Edit 2:
You also could get rid of my getcast method and replace it with a direct call with his addon. With this approach and some hidden containers you could build a more "x-ray" like feature. He also stores the tmdb_id information of the actors so calling Embuary Info is still supported.


RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - jurialmunkey - 2019-08-07

(2019-08-06, 23:48)sualfred Wrote: Jurialmunkey added a function for this:
https://forum.kodi.tv/showthread.php?tid=346034&pid=2874999#pid2874999

Edit:
But I'm not quite sure if he has added the field information that tmdb returns for searches based on a query.

@jurialmunkey 
Do you added the "known_for" information to this output? 
(see https://api.themoviedb.org/3/search/person?api_key=867ff90cfaeef855e39cf1fb3f56edf4&language=en-US&query=bruce%20willis&page=1&include_adult=false)

Edit 2:
You also could get rid of my getcast method and replace it with a direct call with his addon. With this approach and some hidden containers you could build a more "x-ray" like feature. He also stores the tmdb_id information of the actors so calling Embuary Info is still supported.
Annoyingly, the API only exposes that info with the search call. It doesn't expose it in the detailed info for some reason.
Still, you can get it from the search call in the latest version: (replace ACTORNAME with appropriate infolabel)
xml:
plugin://plugin.video.themoviedb.helper/?info=search&type=person&query=ACTORNAME

You should be able to get from that container:
xml:
ListItem.Property(known_for)
ListItem.Property(known_for.1.title)
ListItem.Property(known_for.1.tmdb_type)
ListItem.Property(known_for.1.tmdb_id)

First property provides full concatenated list of all items with a "/" separator.
The others provide details for specific items.

The plugin path provides a list of all actors matching the query.
If you want to use it as a hidden list for details on known_for only, then you could just reference the first item with:
xml:
Container(ID).ListItemAbsolute(0).Property(known_for)

You could also pass the tmdb_id of the actor to another list to get Movies that they star in:
xml:
plugin://plugin.video.themoviedb.helper/?info=stars_in_movies&type=movie&tmdb_id=$INFO[Container(ID).ListItemAbsolute(0).Property(tmdb_id)]



RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - Hitcher - 2019-08-07

Thanks to both to you.


RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - mardukL - 2019-08-07

(2019-08-06, 16:40)Hitcher Wrote:
(2019-08-06, 06:41)mardukL Wrote: Did you already implement this?
$INFO[Container(my-hidden-container-id).listitem.Rating(rottentomatoes)] - it remains empty
That's not a valid info label. These are the values Universal Scraper uses -


xml:
Listitem.Rating(tomatometerallcritics)
Listitem.Rating(tomatometeravgcritics)
Listitem.Rating(tomatometerallaudience)
Listitem.Rating(tomatometeravgaudience)

Yepp, on my side too, just ask cause helper actual just do the 'math' convert to that.

As append
tomatometerallcritics represents the percentage of professional critic

tomatometerallaudience is based on user votes

https://www.rottentomatoes.com/about#whatisthetomatometer


RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - Hitcher - 2019-08-09

@sualfred Trying to use the 'Get Kodi setting' function but it doesn't seem to want to work for any that are just numbers. The ones I'm after are musicplayer.seeksteps and videoplayer.seeksteps as I'm hoping to run them through the 'Split value' function to get the biggest step back and forward.

Thanks.


RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-08-09

Thanks, fixed on github.


RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - Hitcher - 2019-08-09

Thanks, got that working but now I'm having trouble splitting the output.

Here's my code if that helps -

xml:
<onload>RunScript(script.embuary.helper,action=getkodisetting,setting=videoplayer.seeksteps)</onload>
<onload>RunScript(script.embuary.helper,action=split,value='$ESCINFO[Window(home).property(videoplayer.seeksteps)]',separator='", "',prop=MySplit)</onload>

I've tried replacing the comma with $COMMA but no results from $INFO[Window(home).Property(MySplit.0)]$INFO[Window(home).Property(MySplit.1)], etc.


RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-08-09

My fault. I've used "property" instead of "prop" like in the other functions. Fixed on GitHub. Thanks.


RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - bsoriano - 2019-08-27

@sualfred, I am trying to cut down the dependencies I have in the Amber skin.  Right now I only use the function "playliststats" from service.library.data.provider, so I can provide an infoline (library statistics) for any menu item that is a playlist.  Would you consider adding this function to embuary.helper? This is what it does (taken from the readme for service.library.data.provider):

xml:

Playliststats
Playliststats is used when a playlist or videonode is set as the onclick action in the (Home) menu. Example: Put a list in your Home.xml:
<control type="list" id="43260"> <posx>0</posx> <posy>0</posy> <width>1</width> <height>1</height> <focusedlayout/> <itemlayout/> <content>plugin://service.library.data.provider?type=playliststats&amp;id=$INFO[Container(9000).ListItem.Property(Path)]</content> </control>
The Path property has the onclick action defined. 9000 is the ID of the Home main menu. The following properties are available when the menu item containing the playlist or video node is highlighted:
Window(Home).Property(PlaylistWatched)
Window(Home).Property(PlaylistCount)
Window(Home).Property(PlaylistTVShowCount)
Window(Home).Property(PlaylistInProgress)
Window(Home).Property(PlaylistUnWatched)
Window(Home).Property(PlaylistEpisodes)
Window(Home).Property(PlaylistEpisodesUnWatched)

Thanks for considering my request.

Regards,

Bart


RE: script.embuary.helper - a (maybe) skin helper service / widgets alternative - sualfred - 2019-08-27

Lol, I never looked in detail what this playliststats did. Now I understand what it does. Yeah, not a big deal. BigNoid already did the job and I just have to do some copy pasta magic with slight adjustments.