mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-21 13:53:15 -07:00
Typo in auto-updater fixed
This commit is contained in:
parent
ad4c6a0a47
commit
ee5a808268
1 changed files with 10 additions and 8 deletions
|
@ -130,16 +130,18 @@ def initialize():
|
||||||
CFG = config()
|
CFG = config()
|
||||||
|
|
||||||
# check for newer version
|
# check for newer version
|
||||||
|
AUTO_UPDATE = CFG['General']['auto_update']
|
||||||
versionCheck.CheckVersion().find_installed_version()
|
versionCheck.CheckVersion().find_installed_version()
|
||||||
logger.info('nzbToMedia Version:' + NZBTOMEDIA_VERSION + ' Branch:' + NZBTOMEDIA_BRANCH + ' (' + platform.system() + '; ' + platform.release() + ')')
|
logger.info('nzbToMedia Version:' + NZBTOMEDIA_VERSION + ' Branch:' + NZBTOMEDIA_BRANCH + ' (' + platform.system() + '; ' + platform.release() + ')')
|
||||||
if CFG['General']['auto_update'] == 1 and versionCheck.CheckVersion().check_for_new_version():
|
if versionCheck.CheckVersion().check_for_new_version():
|
||||||
logger.MESSAGE("Auto-Updating nzbToMedia, Please wait ...")
|
if AUTO_UPDATE == 1:
|
||||||
updated = versionCheck.CheckVersion().update()
|
logger.MESSAGE("Auto-Updating nzbToMedia, Please wait ...")
|
||||||
if updated:
|
updated = versionCheck.CheckVersion().update()
|
||||||
# restart nzbToMedia
|
if updated:
|
||||||
restart()
|
# restart nzbToMedia
|
||||||
else:
|
restart()
|
||||||
logger.ERROR("Update wasn't successful, not restarting. Check your log for more information.")
|
else:
|
||||||
|
logger.ERROR("Update wasn't successful, not restarting. Check your log for more information.")
|
||||||
|
|
||||||
WakeUp()
|
WakeUp()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue