Release plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners
(2019-12-03, 15:32)jurialmunkey Wrote:
(2019-12-03, 14:59)bsoriano Wrote:
(2019-12-03, 14:40)jurialmunkey Wrote: Sorry, you are completely correct. I can confirm.

Looks like TMDb API doesn't support with_crew/with_cast/with_people for tvshows
https://developers.themoviedb.org/3/disc...v-discover

It only works for movies (you can see what params are supported in the "Query String" section of the links).
https://developers.themoviedb.org/3/disc...e-discover

However, you should be able to get the crew movies at least for the first creator with the following
plugin://plugin.video.themoviedb.helper?info=crew_in_tvshows&type=person&query=$INFO[Container(6001).ListItem.Property(Creator.1.Name)]


Also FYI - I've now added a Service Monitor to simplify getting details:
Enable it with the following skin setting:
Skin.SetBool(TMDbHelper.Service)

You may need to restart Kodi after enabling it the first time (make sure to Exit correctly from power menu so that skin settings are saved).

With the Service Monitor enabled, all detailed item properties are set to
$INFO[Window(Home).Property(TMDbHelper.ListItem.INFOLABEL)]

e.g.
$INFO[Window(Home).Property(TMDbHelper.ListItem.Poster)]$INFO[Window(Home).Property(TMDbHelper.ListItem.Plot)]$INFO[Window(Home).Property(TMDbHelper.ListItem.Creator)]$INFO[Window(Home).Property(TMDbHelper.ListItem.rottentomatoes_reviewtotal)]

Every property normally available to detailed item is also set to a window property.

To get details for a widget container, set the ID in the same way you would for SkinHelper:
SetProperty(TMDbHelper.WidgetContainer, ID, Home)
@jurialmunkey, with the new service monitor, does that mean that I no longer need the hidden list in video info to retrieve the details if the item is not local?  Also, since I did not use skin helper service before for widgets, where would I set the widget container ID? In Home.xml onload? Thanks for continuing to improve this plugin and make skinner's life easier.

Regards,

Bart 

That's correct - you can remove the hidden list and use the service monitor instead. It will populate Window Properties based upon the currently focused item. Make sure you set the skin setting to enable it.

Yes, set widget container ID onload of Home screen. Make sure to clear the property onunload otherwise it won't work in the library because it will be looking for that ID.

If you use multiple widgets, you can also set ID using <onfocus>SetProperty(TMDbHelper.WidgetContainer, $PARAM[id], Home)</onfocus> in the widget container itself.

Basically setting the property tells the service to look at that particular container ID for the focused item. If it isn't set, it will only look at the current listitem of the current view when in MyVideoNav (The home screen doesn't have a default item container like the library does). 
@jurialmunkey, excellent, thanks! Smile I will change my Amber implementation to use the service monitor.  

Regards,

Bart
Reply


Messages In This Thread
RE: TheMovieDB Helper - by jurialmunkey - 2019-07-31, 11:47
RE: plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners - by bsoriano - 2019-12-03, 15:35
Logout Mark Read Team Forum Stats Members Help
plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners2