How to disable automatic addon start?
#1
My addon's default.py file has the following structure:
Code:
class PlayTrailer:
    def __init__(self):
        self.getTrailer(False)
    
    def getTrailer(self, onoff):
            ...

PlayTrailer()
When Kodi starts, it also started (`getTrailer(self, onoff)` executed). How could I disable such addon behaviour?
Reply
#2
There are only two ways I know of offhand to get an addon to start when kodi does:

Service Addon: http://kodi.wiki/view/Service_add-ons
Autoexec.py (depreciated): http://kodi.wiki/view/Autoexec.py

Both would have required you to do something specific to enable that behavior. Without more of the addon structure, the only thing I can suggest is to look in your addon.xml and delete any service extension point (the wiki page above describes this in more detail).
Reply
#3
Thanks, I've really incorrectly defined my addon as Service Addon.
Reply

Logout Mark Read Team Forum Stats Members Help
How to disable automatic addon start?0