Option to update PlexPy automatically

This commit is contained in:
JonnyWong16 2016-10-09 16:43:12 -07:00 committed by JonnyWong16
commit 91716527a4
5 changed files with 22 additions and 4 deletions

View file

@ -297,7 +297,7 @@ def initialize_scheduler():
github_minutes = CONFIG.CHECK_GITHUB_INTERVAL if CONFIG.CHECK_GITHUB_INTERVAL and CONFIG.CHECK_GITHUB else 0
schedule_job(versioncheck.checkGithub, 'Check GitHub for updates',
hours=0, minutes=github_minutes, seconds=0)
hours=0, minutes=github_minutes, seconds=0, args=(bool(CONFIG.PLEXPY_AUTO_UPDATE),))
backup_hours = CONFIG.BACKUP_INTERVAL if 1 <= CONFIG.BACKUP_INTERVAL <= 24 else 6