PDA

View Full Version : XBMC.RunPlugin handle issues -1


Voinage
2008-12-13, 18:15
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.


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, 18:33
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, 20:18
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.