2019-12-18, 23:39
(2019-12-18, 13:17)nessus Wrote: 1. There is no ListItem.Trailer
info label in the themoviedb.helper info properties. Is this not available in the API.
The API does return a list of YouTube IDs for related videos like trailers etc. - I haven't got around to adding it yet as I'm not certain on what the proper way to add a YouTube ID as trailer path is. I'll look into it and get back to you. (2019-12-18, 13:17)nessus Wrote: 2. I cant fallback the main "Play" action for the item. In movies videos section i useI don't lookup any local db information except for DBID - that's why filenameandpath is empty.PlayMedia($INFO[ListItem.FilenameAndPath])
. In widgets using eg...plugin://plugin.video.themoviedb.helper?info=now_playing&type=movie
this is not working since theListItem.FilenameAndPath
is empty for all items even for those are available in local library. I try to you use themoviedb.helper play fuction...plugin://plugin.video.themoviedb.helper?info=play&tmdb_id=$INFO[ListItem.Property(tmdb_id)]&type=movie
but that it's not working too. I am sure i am doing something wrong here but i cant figure what?.
You need to use RunPlugin() because the player function is essentially a script and doesn't directly return playable file path.
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.