Release plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners
(2020-10-31, 01:10)jurialmunkey Wrote:
(2020-10-29, 23:41)bsoriano Wrote: @jurialmunkey , I am using version 4.0.21, and have gotten some messages of tmdb helper error while in the video info dialog.  This is what I am seeing in the log:

xml:

2020-10-29 17:25:10.148 T:15764   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.TypeError'>
                                            Error Contents: list_discover() takes exactly 2 arguments (1 given)
                                            Traceback (most recent call last):
                                              File "C:\Users\bsori\AppData\Roaming\Kodi\addons\plugin.video.themoviedb.helper\plugin.py", line 9, in <module>
                                                Container().router()
                                              File "C:\Users\bsori\AppData\Roaming\Kodi\addons\plugin.video.themoviedb.helper\resources\lib\items\container.py", line 422, in router
                                                return self.get_directory()
                                              File "C:\Users\bsori\AppData\Roaming\Kodi\addons\plugin.video.themoviedb.helper\resources\lib\items\container.py", line 368, in get_directory
                                                items = self.get_items(**self.params)
                                              File "C:\Users\bsori\AppData\Roaming\Kodi\addons\plugin.video.themoviedb.helper\resources\lib\items\container.py", line 318, in get_items
                                                return self.list_discover(**kwargs)
                                            TypeError: list_discover() takes exactly 2 arguments (1 given)
                                            -->End of Python script error report<--
2020-10-29 17:25:10.303 T:15244   ERROR: XFILE::CDirectory::GetDirectory - Error getting plugin://plugin.video.themoviedb.helper/?info=discover&&with_genres=Adventure / Horror / Thriller&exclude_key=title&exclude_value=No Escape&nextpage=false

Please let me know if you would like me to send you a full debug log.  Thanks.

Regards,

Bart

This is due to a misconfigured plugin:// path in your skin. I stopped being permissive of plugin paths that are missing required params to make it easier to identify problems both in the plugin and in skins.

In this instance your path is missing the &type=movie|tv|person param.
Code:
plugin://plugin.video.themoviedb.helper/?info=discover&&with_genres=Adventure / Horror / Thriller&exclude_key=title&exclude_value=No Escape&nextpage=false

Looks like you intend it to be between the double && after the info=discover part but whatever variable you are using is returning empty.

What's your variable for the type param? I wonder if this issue is related to the problem in Kodi where nested skin variables (e.g. a variable inside a variable) will be empty if a modal dialog like context or select is open.
@jurialmunkey , I guess it could be that problem you mention, since my variable for the type param is the following:

xml:

<variable name="TMDbMediaType">
        <value condition="String.IsEqual(ListItem.DBType,movie) | ListItem.IsCollection">type=movie</value>
        <value condition="Window.IsActive(script-embuary-video.xml) + String.IsEqual(Container(10051).ListItem.DBType,movie)">type=movie</value>
        <value condition="String.IsEqual(ListItem.DBType,tvshow) | String.IsEqual(ListItem.DBType,season) | String.IsEqual(ListItem.DBType,episode)">type=tv</value>
        <value condition="Window.IsActive(script-embuary-video.xml) + [String.IsEqual(Container(10051).ListItem.DBType,tvshow) | String.IsEqual(Container(10051).ListItem.DBType,season)]">type=tv</value>
    </variable>

And the variable for the discover call with genres is the following:

xml:

<variable name="VideoInfoFromGenre">
        <value condition="[String.IsEqual(ListItem.DBType,movie) | String.IsEqual(ListItem.DBType,tvshow)] + [!Skin.HasSetting(Disable.ExtendedInfo) | !String.IsEmpty(ListItem.Property(tmdb_id))] + System.HasAddon(plugin.video.themoviedb.helper) + !String.IsEmpty(ListItem.Genre)">plugin://plugin.video.themoviedb.helper?info=discover&amp;$VAR[TMDbMediaType]&amp;with_genres=$INFO[ListItem.Genre]&amp;exclude_key=title&amp;exclude_value=$INFO[ListItem.Title]&amp;nextpage=false</value>
        <value condition="[String.IsEqual(ListItem.DBType,movie) | String.IsEqual(ListItem.DBType,tvshow)] + [!Skin.HasSetting(Disable.ExtendedInfo) | !String.IsEmpty(ListItem.Property(tmdb_id))] + System.HasAddon(plugin.video.themoviedb.helper) + String.IsEmpty(ListItem.Genre) + !String.IsEmpty(Window(Home).Property(TMDbHelper.ListItem.Genre))">plugin://plugin.video.themoviedb.helper?info=discover&amp;$VAR[TMDbMediaType]&amp;with_genres=$INFO[Window(Home).Property(TMDbHelper.ListItem.Genre)]&amp;exclude_key=title&amp;exclude_value=$INFO[ListItem.Title]&amp;nextpage=false</value>
        <value condition="String.IsEqual(ListItem.DBType,movie)">videodb://movies/titles/?xsp=%7B%22order%22%3A%7B%22direction%22%3A%22ascending%22%2C%22ignorefolders%22%3A0%2C%22method%22%3A%22sorttitle%22%7D%2C%22rules%22%3A%7B%22and%22%3A%5B%7B%22field%22%3A%22genre%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[ListItem.Genre]%22%5D%7D%5D%7D%2C%22type%22%3A%22movies%22%7D</value>
        <value condition="String.IsEqual(ListItem.DBType,tvshow)">videodb://tvshows/titles/?xsp=%7B%22order%22%3A%7B%22direction%22%3A%22ascending%22%2C%22ignorefolders%22%3A0%2C%22method%22%3A%22sorttitle%22%7D%2C%22rules%22%3A%7B%22and%22%3A%5B%7B%22field%22%3A%22genre%22%2C%22operator%22%3A%22contains%22%2C%22value%22%3A%5B%22$INFO[Listitem.Genre]%22%5D%7D%5D%7D%2C%22type%22%3A%22tvshows%22%7D</value>
    </variable>

What would recommend to avoid this issue? Thanks for your help.

Regards,

Bart
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 bsoriano - 2020-10-31, 01:29
Logout Mark Read Team Forum Stats Members Help
plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners2