robweber / xbmclibraryautoupdate

Kodi Addon to update your video/music libraries on a schedule
MIT License
30 stars 22 forks source link

v1.2.0 not working with newest "Kodi v19 Alpha 3" #57

Closed eusi closed 3 years ago

eusi commented 3 years ago

Hi Rob,

When I execute the addon, following error appears in the log:

2020-11-04 21:19:24.158 T:20468    INFO <general>: initializing python engine.
2020-11-04 21:19:24.585 T:20468 WARNING <general>: xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead.
2020-11-04 21:19:24.585 T:20468 WARNING <general>: xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead.
2020-11-04 21:19:24.585 T:20468 WARNING <general>: xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead.
2020-11-04 21:19:24.585 T:20468 WARNING <general>: xbmc.translatePath is deprecated and might be removed in future kodi versions. Please use xbmcvfs.translatePath instead.
2020-11-04 21:19:24.587 T:20468   ERROR <general>: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                                    - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                                   Error Type: <class 'TypeError'>
                                                   Error Contents: 'line2' is an invalid keyword argument for this function
                                                   Traceback (most recent call last):
                                                     File "C:\Users\eusi\AppData\Roaming\Kodi\addons\service.libraryautoupdate\manual.py", line 11, in <module>
                                                       runUpdate = xbmcgui.Dialog().yesno(utils.getString(30000), utils.getString(30060) + nextRun, line2=utils.getString(30061), autoclose=6000)
                                                   TypeError: 'line2' is an invalid keyword argument for this function
                                                   -->End of Python script error report<--

2020-11-04 21:19:24.621 T:20468    INFO <general>: Python interpreter stopped

How to fix it? :-)

Greetz eusi

robweber commented 3 years ago

Thanks for letting me know. The xbmc.translatePath messages are just warnings, which I should fix; however it also looks like the xbmcgui.Dialog() function has also changed. The line2 argument is no longer valid. I'll review the Python guide for v19 changes but I'm guessing this has been removed or modified in some way. I'll take a look ASAP.

robweber commented 3 years ago

Should be all merged in - https://github.com/xbmc/repo-scripts/pull/1742