Combined script and service addon
#1
As described here I have created two addons, one service addon which periodically monitors a specific directory for links of files to get converted/archived and one script addon which lets you actually select the files and creates the links.

Since the addons share a lot of code and data I'd prefer - instead of having two separate addons - to combine them into a single addon. In the service addon I had set up a monitor which reloads the settings per 'onSettingsChanged()' function. I was hoping I could make use of an 'onAddonCalled()' function or similar to execute the piece of code (from the scipt addon) which selects the files and which can be invoked from the kodi addon section.

Does anyone know of a proper way to achieve this?

Hope it got clear what I am trying to accomplish.
Reply

Logout Mark Read Team Forum Stats Members Help
Combined script and service addon0