Zkouším si na zelené tlačítko namapovat contextové menu streamu WS....
takto: <green>RunScript("/storage/.kodi/addons/context.webshare/default.py")</green>
co dělám špatně? viz.log
Edit:
Opraveno takto: <green>RunScript(context.webshare)</green> a funkční
takto: <green>RunScript("/storage/.kodi/addons/context.webshare/default.py")</green>
co dělám špatně? viz.log
Kód:
2020-05-15 17:06:28.401 T:3434206080 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.RuntimeError'>
Error Contents: No valid addon id could be obtained. None was passed and the script wasn't executed in a normal xbmc manner.
Traceback (most recent call last):
File "/storage/.kodi/addons/context.webshare/default.py", line 13, in <module>
__addon__ = xbmcaddon.Addon()
RuntimeError: No valid addon id could be obtained. None was passed and the script wasn't executed in a normal xbmc manner.
-->End of Python script error report<--
2020-05-15 17:06:28.408 T:3434206080 DEBUG: onExecutionDone(34, /storage/.kodi/addons/context.webshare/default.py)
2020-05-15 17:06:28.420 T:3434206080 INFO: Python interpreter stopped
Edit:
Opraveno takto: <green>RunScript(context.webshare)</green> a funkční