Release plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners
(2019-08-31, 01:26)bsoriano Wrote: On another note, would you consider adding a discover call for tv shows for year? I know the API call is slightly different for tv shows, since it is not primary_release_year the field in the discover call for tv shows.  If you would add it, it would allow me to also show more tv shows from the same year as the current one in the video info dialog.

You should already be able to:
Code:
plugin://plugin.video.themoviedb.helper?info=discover&type=tv&first_air_date_year=$INFO[ListItem.Year]

Any additional param given to the discover plugin path will be passed to the api call, so you should be able to use pretty much anything here. You can even combine the params.
https://developers.themoviedb.org/3/disc...e-discover
https://developers.themoviedb.org/3/disc...v-discover

The only ones that are tricky are when they require translating into a tmdb_id (e.g. can't just pass a plain text genre to the api). For most of those though, I've provided functions in the plugin to translate into the correct IDs.

You should be able to use any combo of the following (as long is it is supported by the type of discover request):
with_genres
without_genres
with_companies
with_people
with_crew
with_cast
sort_by
first_air_date_year
vote_average.gte
vote_average.lte
vote_count.gte
vote_count.lte
with_runtime.gte
with_runtime.lte
primary_release_year

It should also be possible to use date queries (e.g. primary_release_date.gte). However, I'm not 100% on the date format that TMDb expects and whether it changes based on country code, so it might not always work - particularly as kodi also changes date format based upon region/country. If the date functions are desired I can look at translating dates into the appropriate format too. However, I haven't found much need for these, as I mostly want year filters instead.
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-08-31, 02:31
Logout Mark Read Team Forum Stats Members Help
plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners2