(2020-04-13, 23:01)scott967 Wrote: (2020-04-13, 18:29)Skerlnik Wrote: Hello! I attempted to use V0.6.1 with Kodi 19 (by changing the xbmc.python dependency version to 3.0.0 in the addon.xml), but of course it didn't work. Is there any chance of getting an updated script that works for Kodi 19? I see they're still on MyVideos116.db.
On a side note, there is a script error on like 543:
except Exception,e:
Thanks!
I can take a quick look. the syntax for exceptions changes 2/3 and that's an easy fix.
scott s.
.
Hi Scott,
I am a long time coder, but Py is new to me
I have been trying to update this script to make it function with Kodi 19, but no luck yet. There is a py3 compatible version of script.module.myconnpy at
https://forum.kodi.tv/showthread.php?tid=349745, since Kodi 19 ships with the xbmc.python addon version 3.0.0.
I've also run the default.py source through the 2to3 script that comes with the Python3 tools, and thankfully it didn't change much (just some unicode types).
The script does bomb at line 177 though:
Error Contents: 'str' object has no attribute 'decode'
Traceback (most recent call last):
File "C:\Users\***\AppData\Roaming\Kodi\addons\script.database.cleaner\default.py", line 177, in <module>
addonpath = addon.getAddonInfo('path').decode('utf-8')
AttributeError: 'str' object has no attribute 'decode'
I'm wondering if this Addon() method has changed with Kodi versions:
(line 174) addon = xbmcaddon.Addon()
Hope this info helps you!