Kodi Community Forum

Full Version: Calling another plugin in Kodi 19
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi,

How can we call from my video addon another video addon on Kodi 19.  Including the parameters ?

Thanks
Thread moved to addon development
(2021-11-26, 01:04)jchirag Wrote: [ -> ]How can we call from my video addon another video addon on Kodi 19. 

Do you have anything specific plans with such an action in mind?
Just to get an idea.
You can do it with a JSON call:

https://kodi.wiki/view/JSON-RPC_API/v12#...ecuteAddon

From Python, you'd use xbmc.executeJSONRPC():

https://codedocs.xyz/xbmc/xbmc/group__py...9ed84ed846

That is going to literally launch the other addon, which may end the execution of yours (depending on how both your addon and the called one are written).  So, as Kojum asked, it would probably help to understand what you're trying to accomplish to see if this course of action makes any sense.