Release plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners
(2019-11-06, 22:59)jurialmunkey Wrote: ListItem.IMDBNumber works fine for items in the Library Db.

It's just add-ons that are unable to set it correctly. To get around it, with TMDbHelper I also set the value to a property:
ListItem.Property(imdb_id)

For other add-ons I check with a variable and put the appropriate "query=" or "imdb_id=" param:
xml:

<variable name="Info_Param_IMDB_or_QUERY">
<value condition="String.IsEqual(ListItem.DBType,movie) + !String.IsEmpty(ListItem.Property(imdb_id))">imdb_id=$INFO[ListItem.Property(imdb_id)]</value>
<value condition="String.IsEqual(ListItem.DBType,movie) + !String.IsEmpty(ListItem.IMDBNumber) + !String.StartsWith(ListItem.IMDBNumber,xx)">imdb_id=$INFO[ListItem.IMDBNumber]</value>
<value condition="[String.IsEqual(ListItem.DBType,tvshow) | String.IsEqual(ListItem.DBType,season) | String.IsEqual(ListItem.DBType,episode)] + !String.IsEmpty(ListItem.TvShowTitle)">query=$INFO[ListItem.TvShowTitle]</value>
<value condition="!String.IsEmpty(ListItem.Title) + !String.IsEmpty(ListItem.Year)">query=$INFO[ListItem.Title]&amp;year=$INFO[ListItem.Year]</value>
<value condition="!String.IsEmpty(ListItem.Title)">query=$INFO[ListItem.Title]</value>
<value>query=$INFO[ListItem.Label]</value>
</variable>

i.e. Use it like so:
Code:
plugin://plugin.video.themoviedb.helper/?info=recommendations&amp;type=movie&amp;$VAR[Info_Param_IMDB_or_QUERY]
Thank you very much for your detailed explanation.
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 patzzz - 2019-11-06, 23:28
Logout Mark Read Team Forum Stats Members Help
plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners2