From b61e1467ee19ca96782248c0189424334d5980b7 Mon Sep 17 00:00:00 2001 From: RaNaN Date: Sat, 7 May 2011 10:44:36 +0200 Subject: hooks methods callable via rpc, closed #299 --- module/plugins/hooks/UpdateManager.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'module/plugins/hooks') diff --git a/module/plugins/hooks/UpdateManager.py b/module/plugins/hooks/UpdateManager.py index df81ebbe7..026cd0c9f 100644 --- a/module/plugins/hooks/UpdateManager.py +++ b/module/plugins/hooks/UpdateManager.py @@ -20,7 +20,7 @@ from os.path import join from module.network.RequestFactory import getURL -from module.plugins.Hook import threaded, Hook +from module.plugins.Hook import threaded, Expose, Hook class UpdateManager(Hook): __name__ = "UpdateManager" @@ -48,8 +48,13 @@ class UpdateManager(Hook): else: self.log.info(_("No plugin updates available")) + @Expose + def recheckForUpdates(self): + """recheck if updates are available""" + self.periodical() + def checkForUpdate(self): - """ checks if an update is available""" + """checks if an update is available""" try: version_check = getURL("http://get.pyload.org/check/%s/" % self.core.server_methods.get_server_version()) -- cgit v1.2.3