Release plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners
(2020-01-08, 02:05)bsoriano Wrote: @jurialmunkey , I am in the process of changing my code to use the call_auto and close_dialog calls.  In my video info dialog, I use a custom Play button.  If I press I on a movie, and just want to play it (I have not clicked on any widget lists or anything yet), do I need to use the close_dialog call before sending a click to button 8? Or should it be after, or not at all? I am finding that the dialog is closed, but the movie does not start playing full screen, but in the background.  Please confirm what the sequence of events should be, or if I need to ensure that tmdbhelper.path.current is not empty before doing any close_dialog call.  Thanks.
Generally, you should run close_dialog anywhere that you would normally use Dialog.Close() to close dialogvideoinfo. It should be placed before any other onclick actions. However, for SendClick(8) (and probably trailer button too) we will need a special action as the script closing the dialog at the same time interferes with the toggle fullscreen action.

On the latest, I've added an additional "sendclick=" param for the close_dialog method which will let the script handle when to call SendClick(ID) (make sure you remove <onclick>SendClick(8)</onclick> because otherwise it will get called twice!)
Code:
<onclick>RunScript(plugin.video.themoviedb.helper,close_dialog=1190,sendclick=8)</onclick>

This works for me. Please test and confirm.

(2020-01-08, 02:05)bsoriano Wrote: Also, for a few of the detail fields in video info (Director, Writer, Genre, Country, Studio, etc.) I use script.embuary.helper to show the user a select dialog and allow them to choose to search online in tmdb (via a tmdb helper call) or locally in the db, and sometimes a second select dialog to separate multiple items in the field so the user can select one to do the search with.  First, calling embuary helper should not interfere with your plugin's new window management, correct? And second, in all of the actions that I have for these select dialogs where I close the video info dialog, do I need to replace them with a tmdb helper close_dialog call? Are there any conditions I would need to check before doing that?

Yep, just replace Dialog.Close with the close_dialog call. It should work fine -- just make sure you are only calling close_dialog when you are going to the search window and NOT themoviedb info window (i.e. don't do close_dialog when doing add_path/call_auto).

Close_dialog is basically just a way to nuke the tmdbhelper process and reset all its Path properties.

In order, close_dialog does the following:
1. Clears all the TMDbHelper.Path properties.
2. Closes dialogvideoinfo
3. Closes the Window ID as specified in close_dialog=
4. SendClick(ID) as specified in sendclick=
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 - 2020-01-08, 05:27
Logout Mark Read Team Forum Stats Members Help
plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners2