Exemplo n.º 1
0
 def __init__(self, info, repository):
     Addon.__init__(self, info, repository)
     self.script = info.script
     self.requires = [require for require in info.requires if require['addon'] not in VideoAddon.ignore_requires]
     if self.script == '':
         raise Exception("%s entry point missing in addon.xml" % self)
     # content provider
     self.downloads_path = self.get_setting('download_path')
     self.shortcuts_path = os.path.join(config.plugins.archivCZSK.dataPath.getValue(), self.id)
     self.provider = VideoAddonContentProvider(self, self.downloads_path, self.shortcuts_path)
Exemplo n.º 2
0
    def __init__(self, info, repository):
        Addon.__init__(self, info, repository)
        self.script = info.script
        self.requires = [
            require for require in info.requires
            if require['addon'] not in VideoAddon.ignore_requires
        ]
        if self.script == '':
            raise Exception("%s entry point missing in addon.xml" % self)
        # content provider
        self.downloads_path = self.get_setting('download_path')
        self.shortcuts_path = os.path.join(
            config.plugins.archivCZSK.dataPath.getValue(), self.id)
        self.provider = VideoAddonContentProvider(self, self.downloads_path,
                                                  self.shortcuts_path)

        main = self.settings.main
        main.seekable = ConfigYesNo(default=True)
        main.pausable = ConfigYesNo(default=True)

        log.info('%s successfully loaded', self)