2019-12-20, 02:59
(2019-12-20, 01:30)nessus Wrote: Ok... this works fine for widgets items provided by themoviedb.helper plugin:// path lists, but when used in movies section or for widgets with local path (playlist or library node) it throws a script error.... https://paste.kodi.tv/saqehupufu.kodi
Can the script do this automatically?. I mean play items that are provided by script's plugin:// paths and they are in local library and open kodi's video info dialog for all the others ?. I think this will save as of lot of hassle.
That's because ListItem.Property(tmdb_id) is empty, so you're not looking anything up. You need to use a condition in the skin to check that it's not empty before calling the player function i.e.
Code:
<onclick condition="!String.IsEmpty(ListItem.Property(tmdb_id))">RunPlugin(plugin://plugin.video.themoviedb.helper?info=play&tmdb_id=$INFO[ListItem.Property(tmdb_id)]&type=movie)</onclick>
&query=
when it is empty:Code:
<onclick condition="String.IsEmpty(ListItem.Property(tmdb_id))">RunPlugin(plugin://plugin.video.themoviedb.helper?info=play&query=$INFO[ListItem.Title]&type=movie)</onclick>
(2019-12-20, 01:30)nessus Wrote: By the way the lists provided from the themoviedb.helper they all have the "Next Page" as the last item. I didn't test what happens if the content limit is set in less than 20 but i have all my widgets without limit an i would like to keep it that way.I'll add an optional param to disable/enable next page item in next update.
EDIT: Added. By default next page item will only show in the browser. If you want to show it in a widget/videoinfo then add
&nextpage=True
(2019-12-20, 01:30)nessus Wrote: Also i notice that some of the items are missing the IMDB number which is available from the API. Example... "The Lord of the Rings: The Return of the King" in Top Rated Movies... https://api.themoviedb.org/3/movie/122?a...uage=en-USTop Rated Movies api call doesn't return external IDs:
https://developers.themoviedb.org/3/movi...ted-movies
https://api.themoviedb.org/3/movie/top_r...-US&page=1
Only API calls that support append_to_response will return external IDs. However, if you've previously viewed the detailed item, the external IDs (and other details) will be cached and returned. Looking up the details for every item in the list causes a significant performance hit because each details call has to be done individually.