Kodi Community Forum
XBMC.RunPlugin handle issues -1 - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+--- Thread: XBMC.RunPlugin handle issues -1 (/showthread.php?tid=42073)



XBMC.RunPlugin handle issues -1 - Voinage - 2008-12-13

14:57:59 M: 35516416 ERROR: DIRECTORY::CPluginDirectory::AddItem - called with an invalid handle.

sys.argv

['plugin://video/Crunchyroll/', '-1', '']


This happens when i call the XBMC.RunPlugin.
tried it from a script also same result.
It`s probably me missing something but i can`t figure it out.

The isfolder is set to True and the plugin is fine on it`s own, just when called.

Code:
xbmc.executebuiltin('XBMC.RunPlugin(plugin://video/Crunchyroll)')


Tried it from a script and plugin always the same result.
It will not run any plugins


- Nuka1195 - 2008-12-13

that builtin is confusing but necessary.

if your running a plugin that gives a listing (isFolder=True), you use ActvateWindow()

if your running a plugin that plays media (isFolder=False), you use RunPlugin(). eg youtube that needs a session id.


- Voinage - 2008-12-13

Thanks for the help Nuka,

I`m finally getting to grips with the internals.

Dialogs==> in Plugins are great, the select is wonderful.

Starting to use the yesno.

Hopefully I can complete my unified Plugin to run all of my other plugins now.
Xbmc is a true masterpiece, thanks.


RE: XBMC.RunPlugin handle issues -1 - L0RE - 2016-04-21

Found my Error:
Wrong: 'XBMC.RunPlugin('+ Pluginurl+')')
Right: ActivateWindow(Videos,'+ Pluginurl+')')
Thanks


RE: XBMC.RunPlugin handle issues -1 - crono141 - 2017-09-02

Thread necro here. Does anyone know how to get the plugin url for a specific plugin?


RE: XBMC.RunPlugin handle issues -1 - PX80 - 2019-02-20

do you have an example?