1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-12-12 19:12:26 -05:00

More testing for auto-updater code

This commit is contained in:
echel0n 2014-04-23 00:22:50 -07:00
parent b50fa0aa07
commit 3c215d8cde
2 changed files with 3 additions and 3 deletions

View File

@ -979,7 +979,7 @@ def initialize(consoleLogging=True):
runImmediately=True) runImmediately=True)
autoUpdateScheduler = scheduler.Scheduler(versionChecker.AutoUpdate(), autoUpdateScheduler = scheduler.Scheduler(versionChecker.AutoUpdate(),
cycleTime=datetime.timedelta(seconds=3), cycleTime=datetime.timedelta(minutes=5),
threadName="AUTOUPDATER", threadName="AUTOUPDATER",
runImmediately=True, runImmediately=True,
silent=True) silent=True)

View File

@ -109,7 +109,7 @@ class CheckVersion():
if not silent: if not silent:
logger.log(u"No update needed") logger.log(u"No update needed")
if force: if force and not silent:
ui.notifications.message('No update needed') ui.notifications.message('No update needed')
return False return False
@ -122,7 +122,7 @@ class CheckVersion():
class AutoUpdate(): class AutoUpdate():
def run(self): 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 ...") logger.log(u"New update found for SickBeard, starting auto-updater ...")
updated = sickbeard.versionCheckScheduler.action.update() updated = sickbeard.versionCheckScheduler.action.update()
if updated: if updated: