2023-07-09, 02:08
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 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?
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=...
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?