mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-14 10:36:52 -07:00
Fix CheckVersion instance creation
This commit is contained in:
parent
c9e9d9748b
commit
750c203216
1 changed files with 3 additions and 2 deletions
|
@ -370,12 +370,13 @@ def configure_updates():
|
|||
global AUTO_UPDATE
|
||||
|
||||
AUTO_UPDATE = int(CFG['General']['auto_update'])
|
||||
version_checker = version_check.CheckVersion()
|
||||
|
||||
# Check for updates via GitHUB
|
||||
if version_check.CheckVersion().check_for_new_version():
|
||||
if version_checker.check_for_new_version():
|
||||
if AUTO_UPDATE == 1:
|
||||
logger.info('Auto-Updating nzbToMedia, Please wait ...')
|
||||
updated = version_check.CheckVersion().update()
|
||||
updated = version_checker.update()
|
||||
if updated:
|
||||
# restart nzbToMedia
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue