Release plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners
(2021-11-22, 11:53)roidy Wrote: When generating the query I use the ListItem.Year to ensure the correct show is fetched, however take the example of the show Beyond from 2017

I can query episodes from season 1 fine as the year is correct for searching but when querying season 2 the search year is wrong and nothing is found.

Sorry for the late reply. Tapatalk is not refreshing my forum feeds for some reason, so I didn't even realise there were comments here! If you can't get me here, usually I'm pretty good at responding to issues posted on the github: https://github.com/jurialmunkey/plugin.v...per/issues

You're right about the 'episode_cast' now just being the 'cast' call (I'm bad at remembering to update documentation).

For the episode year search with a query, use the "episode_year=" param instead -- e.g.
Code:
plugin://plugin.video.themoviedb.helper/?query=Beyond&episode_year=2018&tmdb_type=tv&info=cast&season=2&episode=2

The year param is a strict match (must match year), whereas episode_year param tells query to look for the most recent show with a first air date on or before the episode_year specified. I probably didn't document this function! I'm trying to be better with documentation these days so I'll update it now! Wink


(2021-11-26, 16:56)roidy Wrote: @jurialmunkey Hi, I'm trying to use plugin.video.themoviedb.helper to replace Extended Info using this wiki page as a guide.

https://github.com/jurialmunkey/plugin.v...ended-Info

I've got it mostly working, with one issue when browsing into TV Shows. I can't browser back out of the TV Show, I just end up at the root of the plugin.

Hmm, this might be a tricky one. Is this just using the built-in button from the info dialog? Or do you use a specific browse command?

I don't think reopening the info dialog is possible after navigating in MyVideoNav (too hard to determine what the user is intending to do). However, there are a couple of options. The first is to create a custom dialog to act as a fake browsing window that sits on top of the video info dialog (which you hide with a conditional animation). It's pretty hacky but would allow for returning to the video info since you never close it.

The other option is what I do in Arctic Horizon, which is a custom browse button with the following onclick actions (I also display it when a movie is part of a set by checking ListItem.IsCollection so that the user can browse the set). The reason there's two sets of commands (one for MyVideoNav and one for elsewhere) is because if MyVideoNav is open I do a container update (call_update=) instead of activatewindow (call_path=)

xml:

<onclick condition="Window.IsVisible(MyVideoNav.xml) + String.IsEmpty(ListItem.DBID)">RunScript(plugin.video.themoviedb.helper,close_dialog=1190,call_update=$INFO[ListItem.FolderPath])</onclick>
<onclick condition="Window.IsVisible(MyVideoNav.xml) + !String.IsEmpty(ListItem.DBID) + String.IsEqual(ListItem.DBType,tvshow)">RunScript(plugin.video.themoviedb.helper,close_dialog=1190,call_update=$INFO[ListItem.DBID,videodb://tvshows/titles/,/])</onclick>
<onclick condition="Window.IsVisible(MyVideoNav.xml) + !String.IsEmpty(ListItem.DBID) + ListItem.IsCollection">RunScript(plugin.video.themoviedb.helper,close_dialog=1190,call_update=$INFO[ListItem.DBID,videodb://movies/sets/,/])</onclick>

<onclick condition="!Window.IsVisible(MyVideoNav.xml) + String.IsEmpty(ListItem.DBID)">RunScript(plugin.video.themoviedb.helper,close_dialog=1190,call_path=$INFO[ListItem.FolderPath])</onclick>
<onclick condition="!Window.IsVisible(MyVideoNav.xml) + !String.IsEmpty(ListItem.DBID) + String.IsEqual(ListItem.DBType,tvshow)">RunScript(plugin.video.themoviedb.helper,close_dialog=1190,call_path=$INFO[ListItem.DBID,videodb://tvshows/titles/,/])</onclick>
<onclick condition="!Window.IsVisible(MyVideoNav.xml) + !String.IsEmpty(ListItem.DBID) + ListItem.IsCollection">RunScript(plugin.video.themoviedb.helper,close_dialog=1190,call_path=$INFO[ListItem.DBID,videodb://movies/sets/,/])</onclick>
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 - 2021-12-12, 12:57
Logout Mark Read Team Forum Stats Members Help
plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners2