Exemple #1
0
class Application(object):

    def __init__(self, plugin):
        config.app = self
        self.plugin = plugin
        self.handle = int(sys.argv[1])
        self.bootstrap = Bootstrap(self.plugin.addon, self.handle)

    def get_addon(self):
        return self.plugin.addon

    addon = property(get_addon)

    def start(self):
        try:
            self.bootstrap.init_app()
            self.bootstrap.dispatch()
        except QobuzXbmcError as e:
            warn('[' + pluginId + ']', "Exception while running plugin")
Exemple #2
0
 def __init__(self, plugin):
     config.app = self
     self.plugin = plugin
     self.handle = int(sys.argv[1])
     self.bootstrap = Bootstrap(self.plugin.addon, self.handle)