Release plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners
(2019-12-03, 01:57)nessus Wrote:
(2019-12-03, 00:15)jurialmunkey Wrote: <visible>!Container(ID).IsUpdating</visible> in the label control works fine for me to hide the label when the container is updating (also works fine as a condition in a label variable).

How are you using it?
I am using it in a list container (which is the same for all lists) and in the grouplist control where all my labels are. Do i need to put it in every label separately?. And what about the list containers?
 
(2019-12-03, 00:15)jurialmunkey Wrote: I've fixed the script so that it doesn't error on a 404 and just returns nothing instead. However, not much I can do about the year in title as TMDb api is not liking that. I might be able to do something like compare year string to title string and strip it out but it's not ideal because there might be also sorts of containing characters (e.g "(YEAR)" "[YEAR]" "-YEAR" etc.). Best approach is for scrapers not to append the year to the title!
Isn't it safer to change the query parameter to ListItem.DBID instead of ListItem.TVShowTtile ?. I've try it and the info are fetched properly while with ListItem.TVShowTitle or ListItem.Title i get no info at all from the ?info=details container.

Another weird issue that i am facing is with ListItem.Property(Creator). While in a label the value returns properly when i am using it in ?info=discover&amp;type=tv&amp;with_crew= method it returns a list of the same items in all the shows. This is the variable that use for both director & creator. Director discover list works fine...
xml:

<variable name="DirectorCreatorListContent">
  <value condition="String.IsEqual(ListItem.DBType,movie)">plugin://plugin.video.themoviedb.helper?info=discover&amp;type=movie&amp;with_crew=$INFO[ListItem.Director]&amp;with_separator=OR&amp;exclude_key=title&amp;exclude_value=$INFO[ListItem.Title]</value>
  <value condition="String.IsEqual(ListItem.DBType,tvshow) | String.IsEqual(ListItem.DBType,season)">plugin://plugin.video.themoviedb.helper?info=discover&amp;type=tv&amp;with_crew=$INFO[Container(6001).ListItem.Property(Creator)]&amp;with_separator=OR&amp;exclude_key=title&amp;exclude_value=$INFO[ListItem.Title]</value>
</variable>
Any idea?


Thanks
Nessus

Yes you need to hide the actual label when the container is updating (either with visibility condition or variable), not the container itself.

You can't pass DBID to query param. It doesn't work like that and if you are getting results like that then they are most likely wrong. You can only pass tmdb_id, imdb_id, or query text. Query is passed to the TMDb search function to get a list of results. The plugin then takes ID of first result (or if year is specified the first result with matching year). The plugin then does the info request with the ID as if it had been passed it directly.

So TMDb or IMDb ID are best options as they will provide perfect match.

Query + Year is more accurate than Query alone. HOWEVER sometimes adding year can result in failed matches because of regional differences in release dates or bad data in local db. So sometimes query alone can be better.

RE with_crew - the issue is that your container 6001 hasn't loaded the details when it is referenced in your plugin path so you are just passing an empty string. You need to use a visible condition to hide your with_crew container until 6001 has finished updating and has at least 1 item.
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 - 2019-12-03, 05:45
Logout Mark Read Team Forum Stats Members Help
plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners2