Install service as dependency of add-on - 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: Install service as dependency of add-on (/showthread.php?tid=357550) |
Install service as dependency of add-on - Ceth - 2020-10-07 A made-up use case: Let's say I have a regular video add-on that can be opened manually by the user. Alongside this add-on, I want a Service that does some related stuff, and occasionally displays a notification to the user. The service/process should start- and stop along with Kodi, and not be affected by the video add-on. I would like both the Service and the Add-on to be a single `.zip` so that the user only needs to install one package. There are a few ways of doing this (like extracting the Service into `/addons` from the video add-on code), but is there a recommended way of handling dependencies like this? RE: Install service as dependency of add-on - asavah - 2020-10-07 Take a look at youtube addon. It does exactly that. https://github.com/anxdpanic/plugin.video.youtube/blob/master/addon.xml RE: Install service as dependency of add-on - Ceth - 2020-10-08 (2020-10-07, 22:25)asavah Wrote: Take a look at youtube addon. It does exactly that. Thanks for the link. So if I understand it correctly, it's possible to have a single package specify *both* a Service and a "regular" Add-on by providing the corresponding extension points? |