Kodi Community Forum

Full Version: XBMC.RunPlugin handle issues -1
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
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.
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.
Found my Error:
Wrong: 'XBMC.RunPlugin('+ Pluginurl+')')
Right: ActivateWindow(Videos,'+ Pluginurl+')')
Thanks
Thread necro here. Does anyone know how to get the plugin url for a specific plugin?
do you have an example?