Kodi Community Forum
Calling another plugin in Kodi 19 - 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: Calling another plugin in Kodi 19 (/showthread.php?tid=365680)



Calling another plugin in Kodi 19 - jchirag - 2021-11-26

Hi,

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

Thanks


RE: Calling another plugin in Kodi 19 - DarrenHill - 2021-11-26

Thread moved to addon development


RE: Calling another plugin in Kodi 19 - Klojum - 2021-11-26

(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.


RE: Calling another plugin in Kodi 19 - pkscout - 2021-11-26

You can do it with a JSON call:

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

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

https://codedocs.xyz/xbmc/xbmc/group__python__xbmc.html#gacbdcb8982550fbbe24c7b79ed84ed846

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.


This forum uses Lukasz Tkacz MyBB addons.