Hi, I hope somebody is still following this threat.
When I was trying the scripts I obtain only error messages when pressing the "delete" button while watching a pictures slide show. These are the two logs I get from the two scripts (I tried both)
Code:
13:47:08 T:200 DEBUG: CInputManager::OnKey: delete (0xf087) pressed, action is RunScript("C:\Program Files (x86)\Kodi\UserScripts\delete.py")
13:47:08 T:1916 DEBUG: Thread LanguageInvoker start, auto delete: false
13:47:08 T:1916 INFO: initializing python engine.
13:47:08 T:1916 DEBUG: CPythonInvoker(5, C:\Program Files (x86)\Kodi\UserScripts\delete.py): start processing
13:47:08 T:1916 DEBUG: -->Python Interpreter Initialized<--
13:47:08 T:1916 DEBUG: CPythonInvoker(5, C:\Program Files (x86)\Kodi\UserScripts\delete.py): the source file to load is "C:\Program Files (x86)\Kodi\UserScripts\delete.py"
13:47:08 T:1916 WARNING: CPythonInvoker(5): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
13:47:08 T:1916 DEBUG: CPythonInvoker(5, C:\Program Files (x86)\Kodi\UserScripts\delete.py): setting the Python path to C:\Program Files (x86)\Kodi\UserScripts;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.t0mm0.common\lib;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.bigpictures\lib;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.simplejson\lib;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.xmltodict\lib;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.addon.common\lib;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.beautifulsoup\lib;C:\Program Files (x86)\Kodi\addons\script.module.pil\lib;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.pytz\lib;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.urlresolver\lib;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.parsedom\lib;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.xbmcswift2\lib;C:\Program Files (x86)\Kodi\system\python\DLLs;C:\Program Files (x86)\Kodi\system\python\Lib;C:\Program Files (x86)\Kodi\python27.zip;C:\Program Files (x86)\Kodi\system\python\lib\plat-win;C:\Program Files (x86)\Kodi\system\python\lib\lib-tk;C:\Program Files (x86)\Kodi;C:\Program Files (x86)\Kodi\system\python;C:\Program Files (x86)\Kodi\system\python\lib\site-packages
13:47:08 T:1916 DEBUG: CPythonInvoker(5, C:\Program Files (x86)\Kodi\UserScripts\delete.py): entering source directory C:\Program Files (x86)\Kodi\UserScripts
13:47:08 T:1916 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndentationError'>
Error Contents: ('unexpected indent', ('C:\\Program Files (x86)\\Kodi\\UserScripts\\delete.py', 2, 1, ' import time\n'))
IndentationError: ('unexpected indent', ('C:\\Program Files (x86)\\Kodi\\UserScripts\\delete.py', 2, 1, ' import time\n'))
-->End of Python script error report<--
13:47:08 T:1916 INFO: Python script stopped
and from the second script (the one working for NAS as well):
Code:
13:38:57 T:3000 DEBUG: CInputManager::OnKey: delete (0xf087) pressed, action is RunScript("C:\Program Files (x86)\Kodi\UserScripts\delete.py")
13:38:57 T:5024 DEBUG: Thread LanguageInvoker start, auto delete: false
13:38:57 T:5024 INFO: initializing python engine.
13:38:57 T:5024 DEBUG: CPythonInvoker(5, C:\Program Files (x86)\Kodi\UserScripts\delete.py): start processing
13:38:57 T:5024 DEBUG: -->Python Interpreter Initialized<--
13:38:57 T:5024 DEBUG: CPythonInvoker(5, C:\Program Files (x86)\Kodi\UserScripts\delete.py): the source file to load is "C:\Program Files (x86)\Kodi\UserScripts\delete.py"
13:38:57 T:5024 WARNING: CPythonInvoker(5): Script invoked without an addon. Adding all addon modules installed to python path as fallback. This behaviour will be removed in future version.
13:38:57 T:5024 DEBUG: CPythonInvoker(5, C:\Program Files (x86)\Kodi\UserScripts\delete.py): setting the Python path to C:\Program Files (x86)\Kodi\UserScripts;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.t0mm0.common\lib;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.bigpictures\lib;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.simplejson\lib;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.xmltodict\lib;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.addon.common\lib;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.beautifulsoup\lib;C:\Program Files (x86)\Kodi\addons\script.module.pil\lib;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.pytz\lib;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.urlresolver\lib;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.parsedom\lib;C:\Users\Kodi\AppData\Roaming\Kodi\addons\script.module.xbmcswift2\lib;C:\Program Files (x86)\Kodi\system\python\DLLs;C:\Program Files (x86)\Kodi\system\python\Lib;C:\Program Files (x86)\Kodi\python27.zip;C:\Program Files (x86)\Kodi\system\python\lib\plat-win;C:\Program Files (x86)\Kodi\system\python\lib\lib-tk;C:\Program Files (x86)\Kodi;C:\Program Files (x86)\Kodi\system\python;C:\Program Files (x86)\Kodi\system\python\lib\site-packages
13:38:57 T:5024 DEBUG: CPythonInvoker(5, C:\Program Files (x86)\Kodi\UserScripts\delete.py): entering source directory C:\Program Files (x86)\Kodi\UserScripts
13:38:57 T:5024 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.IndentationError'>
Error Contents: ('unexpected indent', ('C:\\Program Files (x86)\\Kodi\\UserScripts\\delete.py', 3, 1, ' filePath = xbmc.getInfoLabel("Slideshow.Path")\n'))
IndentationError: ('unexpected indent', ('C:\\Program Files (x86)\\Kodi\\UserScripts\\delete.py', 3, 1, ' filePath = xbmc.getInfoLabel("Slideshow.Path")\n'))
-->End of Python script error report<--
13:38:57 T:5024 INFO: Python script stopped
My question would be if I have done something fundamentally wrong or if these scripts can not run on the current Kodi version(s) (the errors are from Jarvis 16.1 but I guess the question would be the same for Krypton)?