2016-07-19, 07:35
Hello,
When I tried to have my addon become a part of the kodi repo, I've been told that it should be a script and not a plugin. The add-on has workarounds to accomplish some things that shouldn't be in a plugin.
So, I reconfigured it as a script. installed and tested...
first problem; there is no argv[1] -- no pluginhandle for addDirectoryItem
after reading around in the forum, I find that argv does not exist for scripts. the script has to be called in some other way
e.g.: xbmc.executebuiltin("XBMC.RunScript(scriptpath,args)")
So now, I'm at a loss.
Is it possible / How do I get a "pluginhandle" to use for addDirectoryItem?
Without access to pluginhandle, I can't use addDirectoryItem to easily populate lists. I'd have to create the gui elements myself. (quite a daunting task)
Anybody know of a workaround?
When I tried to have my addon become a part of the kodi repo, I've been told that it should be a script and not a plugin. The add-on has workarounds to accomplish some things that shouldn't be in a plugin.
So, I reconfigured it as a script. installed and tested...
first problem; there is no argv[1] -- no pluginhandle for addDirectoryItem
after reading around in the forum, I find that argv does not exist for scripts. the script has to be called in some other way
e.g.: xbmc.executebuiltin("XBMC.RunScript(scriptpath,args)")
So now, I'm at a loss.
Is it possible / How do I get a "pluginhandle" to use for addDirectoryItem?
Without access to pluginhandle, I can't use addDirectoryItem to easily populate lists. I'd have to create the gui elements myself. (quite a daunting task)
Anybody know of a workaround?