Release plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners
@Hitcher

What version of the plugin are you using?

The official Kodi repo version (v4.10) only supports the "classic" window property method. To use the container method, you need the version from my repo (v5+)

You should do the SkinSetBool(TMDbHelper.Service) at startup. It needs to be enabled when Kodi starts (it can be toggled on/off but the idle loop only checks the setting every 30 seconds so it isn't good for toggling on demand).

Otherwise your code should work for the library or info dialog.

For widgets on the home screen (or anywhere else), you need to set the "TMDbHelper.WidgetContainer" property to direct the service to the widget list ID you'd like to do the lookups for. You need to set this property whenever you want to get details for a container that isn't a library view specified by <views></views>

Usually I add this as an onfocus for my widgets so that it will change depending on which widget has focus e.g.

xml:


<!-- Widget 1234 -->
<control type="list" id="1234">
<onfocus>SetProperty(TMDbHelper.WidgetContainer,1234,Home)</onfocus>
[...]
</control>

<!-- Widget 5678 -->
<control type="list" id="5678">
<onfocus>SetProperty(TMDbHelper.WidgetContainer,5678,Home)</onfocus>
[...]
</control>
Arctic Fuse - Alpha now available. Support me on Ko-fi.
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 jurialmunkey - 2023-07-05, 05:32
Logout Mark Read Team Forum Stats Members Help
plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners2