Calling another plugin in Kodi 19
#1
Question 
Hi,

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

Thanks
Reply
#2
Thread moved to addon development
|Banned add-ons (wiki)|Forum rules (wiki)|VPN policy (wiki)|First time user (wiki)|FAQs (wiki) Troubleshooting (wiki)|Add-ons (wiki)|Free content (wiki)|Debug Log (wiki)|

Kodi Blog Posts
Reply
#3
(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.
Got a Kodi problem? Provide a full Debug log (wiki) | Usefull pages: First time user (wiki) | Troubleshooting (wiki) | Free content (wiki) | Forum rules (wiki) | VPN policy (wiki)
Reply
#4
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.
Reply



Logout Mark Read Team Forum Stats Members Help
Calling another plugin in Kodi 190
This forum uses Lukasz Tkacz MyBB addons.