Release plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners
(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.

EDIT: I guess you're probably using the same method I was using in Arctic Horizon.

I assume you have something like:
Code:

plugin://plugin.video.themoviedb.helper?info=discover&amp;$VAR[Info_Param_Type]&amp;with_genres=$INFO[ListItem.Genre]&amp;exclude_key=title&amp;exclude_value=$INFO[ListItem.Title]&amp;nextpage=false

<variable name="Info_Param_Type">
<value condition="String.IsEqual(ListItem.DBType,movie) | ListItem.IsCollection | String.IsEqual(ListItem.DBType,set)">type=movie</value>
<value condition="String.IsEqual(ListItem.DBType,tvshow) | String.IsEqual(ListItem.DBType,season) | String.IsEqual(ListItem.DBType,episode)">type=tv</value>
</variable>

I think the problem is related to a bug in the Kodi skinning engine where nested skin variables (i.e. variables inside variables) will be empty if some other dialog is open (e.g. context, select, browse, ok, yesno etc). To fix the issue change it so that the "type=" part of the param is outside the variable and the variable only returns the type value (e.g. movie|tv). That way, if type variable doesn't return anything you still have a "type=" with an empty value rather than no param at all.

e.g.

Code:

plugin://plugin.video.themoviedb.helper?info=discover&amp;type=$VAR[Info_Param_Type]&amp;with_genres=$INFO[ListItem.Genre]&amp;exclude_key=title&amp;exclude_value=$INFO[ListItem.Title]&amp;nextpage=false

<variable name="Info_Param_Type">
<value condition="String.IsEqual(ListItem.DBType,movie) | ListItem.IsCollection | String.IsEqual(ListItem.DBType,set)">movie</value>
<value condition="String.IsEqual(ListItem.DBType,tvshow) | String.IsEqual(ListItem.DBType,season) | String.IsEqual(ListItem.DBType,episode)">tv</value>
</variable>
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-10-31, 01:10
Logout Mark Read Team Forum Stats Members Help
plugin.video.themoviedb.helper - Access to TheMovieDb API for Skinners2