diff options
Diffstat (limited to 'module/plugins/hooks/UpdateManager.py')
-rw-r--r-- | module/plugins/hooks/UpdateManager.py | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py index 26b0cc448..0a89405e7 100644 --- a/module/plugins/hooks/UpdateManager.py +++ b/module/plugins/hooks/UpdateManager.py @@ -97,7 +97,9 @@ class UpdateManager(Hook): @Expose def autoreloadPlugins(self): - """ reload and reindex all modified plugins """ + """ + Reload and reindex all modified plugins + """ modules = filter( lambda m: m and (m.__name__.startswith("module.plugins.") or m.__name__.startswith("userplugins.")) and @@ -137,8 +139,9 @@ class UpdateManager(Hook): @Expose @threaded def update(self): - """ check for updates """ - + """ + Check for updates + """ if self._update() is 2 and self.getConfig('autorestart'): if not self.core.api.statusDownloads(): self.core.api.restart() @@ -179,8 +182,9 @@ class UpdateManager(Hook): def _updatePlugins(self, data): - """ check for plugin updates """ - + """ + Check for plugin updates + """ exitcode = 0 updated = [] @@ -290,8 +294,9 @@ class UpdateManager(Hook): @Expose def removePlugins(self, type_plugins): - """ delete plugins from disk """ - + """ + Delete plugins from disk + """ if not type_plugins: return |