From 3c215d8cdedd3b4ec7b76664453750a52bdb3fcb Mon Sep 17 00:00:00 2001 From: echel0n Date: Wed, 23 Apr 2014 00:22:50 -0700 Subject: [PATCH] More testing for auto-updater code --- sickbeard/__init__.py | 2 +- sickbeard/versionChecker.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sickbeard/__init__.py b/sickbeard/__init__.py index 3ee238a4..94f1ae89 100644 --- a/sickbeard/__init__.py +++ b/sickbeard/__init__.py @@ -979,7 +979,7 @@ def initialize(consoleLogging=True): runImmediately=True) autoUpdateScheduler = scheduler.Scheduler(versionChecker.AutoUpdate(), - cycleTime=datetime.timedelta(seconds=3), + cycleTime=datetime.timedelta(minutes=5), threadName="AUTOUPDATER", runImmediately=True, silent=True) diff --git a/sickbeard/versionChecker.py b/sickbeard/versionChecker.py index 0956cd72..444b9b64 100644 --- a/sickbeard/versionChecker.py +++ b/sickbeard/versionChecker.py @@ -109,7 +109,7 @@ class CheckVersion(): if not silent: logger.log(u"No update needed") - if force: + if force and not silent: ui.notifications.message('No update needed') return False @@ -122,7 +122,7 @@ class CheckVersion(): class AutoUpdate(): def run(self): - if CheckVersion().check_for_new_version(silent=True): + if CheckVersion().check_for_new_version(force=True, silent=True): logger.log(u"New update found for SickBeard, starting auto-updater ...") updated = sickbeard.versionCheckScheduler.action.update() if updated: