2019-12-20, 01:30
(2019-12-18, 23:39)jurialmunkey Wrote: You need to use RunPlugin() because the player function is essentially a script and doesn't directly return playable file path.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
RunPlugin(plugin://plugin.video.themoviedb.helper?info=play&tmdb_id=$INFO[ListItem.Property(tmdb_id)]&type=movie)
The player function then executes one of three commands depending on certain conditions: PlayMedia(filename_path) for local db items, RunPlugin(player_url) for user selected play_movie/episode players, and ActivateWindow(videos, player_url, return) for user selected search_movie/episode players.
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.
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.
EDIT: 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-US
EDIT2: TMDB "Trending Movies" & "Trending TV Shows" are missing from provided lists... https://github.com/jurialmunkey/plugin.v...s-Trending.
Thanks
Nessus