Can a plugin have multiple service extensions?
#1
Hi,

I am writing a video type addon that has two separate services. One is responsible for playback management and keepalive and the other one fetches EPG once in a while. I have them in separate modules. Therefore it made sense to me to have two
Code:
<extension point="xbmc.service" library=...
entries in my addon.xml.

I noticed that the second one won't start. So then I had no other choice but to have exactly one wrapper that launches the two modules properly.

However due to a bug in my EPG handler service, it didn't stop gracefully when Kodi wanted to close and so Kodi decided to kill the whole wrapper causing both services (epg and keepalive) to get force closed. When in reality the keepalive one could have ended gracefully.

I fixed this bug now, but I belive it would be really amazing for the future to avoid stuff like this from happening if I could define more than one service in my addon.xml file. Or is it already possible and I am doing something wrong?
Reply
#2
I’m pretty sure you can only have one of each extension kind, so only one service extension.
Reply
#3
Ah okay, that's unfortunate. Thanks.
Reply

Logout Mark Read Team Forum Stats Members Help
Can a plugin have multiple service extensions?0