Release script.embuary.helper - a (maybe) skin helper service / widgets alternative
#76
tomatometerallcritics or tomatometeravgcritics ? ^^
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#77
(2019-08-06, 16:48)sualfred Wrote: tomatometerallcritics or tomatometeravgcritics ? ^^

@sualfred , as far as I know, tomatometerallcritics.

Regards,

Bart
Reply
#78
https://www.rottentomatoes.com/about#wha...omatometer

Just added them myself.

https://github.com/HitcherUK/skin.ftv/bl...#L663-L718
Reply
#79
Ok, thank you guys. I'll change it to tomatometerallcritics and we will also adjust that in the Emby for Kodi script.
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#80
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.
Reply
#81
Jurialmunkey added a function for this:
2874999 (post)

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/pers...dult=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.
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#82
(2019-08-06, 23:48)sualfred Wrote: Jurialmunkey added a function for this:
2874999 (post)

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/pers...dult=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)
plugin://plugin.video.themoviedb.helper/?info=search&type=person&query=ACTORNAME

You should be able to get from that container:
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:
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:
plugin://plugin.video.themoviedb.helper/?info=stars_in_movies&type=movie&tmdb_id=$INFO[Container(ID).ListItemAbsolute(0).Property(tmdb_id)]
Reply
#83
Thanks to both to you.
Reply
#84
(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 -


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#wha...omatometer
Reply
#85
@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.
Reply
#86
Thanks, fixed on github.
Embuary | Skin | Helper | Info | Repo | GitHub
Reply
#87
Thanks, got that working but now I'm having trouble splitting the output.

Here's my code if that helps -

<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.
Reply
#88
My fault. I've used "property" instead of "prop" like in the other functions. Fixed on GitHub. Thanks.
Embuary | Skin | Helper | Info | Repo | GitHub
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