mirror of
https://github.com/moparisthebest/SickRage
synced 2024-12-13 11:32:20 -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)
|
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)
|
||||||
|
@ -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:
|
||||||
|
Loading…
Reference in New Issue
Block a user