From a4c1480a1a1bdbe17fa340f378d4bb1a3cd689a4 Mon Sep 17 00:00:00 2001 From: Ruud Date: Wed, 29 May 2013 19:03:49 +0200 Subject: [PATCH] Force update check from dropdown --- couchpotato/core/_base/updater/main.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/couchpotato/core/_base/updater/main.py b/couchpotato/core/_base/updater/main.py index 14a0b173..e4e936ce 100644 --- a/couchpotato/core/_base/updater/main.py +++ b/couchpotato/core/_base/updater/main.py @@ -33,7 +33,6 @@ class Updater(Plugin): else: self.updater = SourceUpdater() - addEvent('app.load', self.autoUpdate) addEvent('app.load', self.setCrons) addEvent('updater.info', self.info) @@ -81,8 +80,8 @@ class Updater(Plugin): return False - def check(self): - if self.isDisabled(): + def check(self, force = False): + if not force and self.isDisabled(): return if self.updater.check(): @@ -101,7 +100,7 @@ class Updater(Plugin): def checkView(self): return jsonified({ - 'update_available': self.check(), + 'update_available': self.check(force = True), 'info': self.updater.info() })