mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-12 11:02:21 -05:00
More testing for auto-updater code
This commit is contained in:
parent
b50fa0aa07
commit
3c215d8cde
@ -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)
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user