willforde / script.module.codequick

Kodi addon framework
GNU General Public License v2.0
33 stars 6 forks source link

Using script.module.codequick on Kodi Android requires addon name in code... #54

Open krogsbell opened 1 year ago

krogsbell commented 1 year ago

When using script.module.codequick on Chromecast with Google TV HD with Kodi 20.2 (32bit) I get the following error

import urlquick File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.module.codequick/lib/urlquick.py", line 71, in _addon_data = xbmcaddon.Addon() ^^^^^^^^^^^^^^^^^ RuntimeError: No valid addon id could be obtained. None was passed and the script wasn't executed in a normal Kodi manner.

If I update line 71 to show: _addon_data = xbmcaddon.Addon('script.module.codequick')

all is OK again

Regards Hans