Commit 36b6050a authored by echel0n's avatar echel0n
Browse files

Added version update check on startup

parent 17cd10a2
......@@ -548,6 +548,9 @@ class Core(object):
# load shows
IOLoop.current().add_callback(self.load_shows)
# perform version update check
IOLoop.current().spawn_callback(self.version_updater.check_for_update)
# load network timezones
IOLoop.current().spawn_callback(self.tz_updater.update_network_timezones)
......
......@@ -158,9 +158,14 @@ class VersionUpdater(object):
if sickrage.app.disable_updates:
return False
sickrage.app.log.info('Checking for SiCKRAGE server updates')
if not self.updater.need_update():
sickrage.app.log.info('SiCKRAGE server is up to date')
return False
sickrage.app.log.info('New SiCKRAGE server update is available!')
self.updater.set_latest_version()
return True
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment