diff --git a/couchpotato/core/plugins/updater/__init__.py b/couchpotato/core/plugins/updater/__init__.py index 80cca632..c5ccd506 100644 --- a/couchpotato/core/plugins/updater/__init__.py +++ b/couchpotato/core/plugins/updater/__init__.py @@ -11,17 +11,17 @@ config = [{ 'name': 'updater', 'label': 'Updater', 'git_only': True, + 'description': 'Enable periodic update checking', 'options': [ { 'name': 'enabled', 'default': True, 'type': 'enabler', - 'description': 'Enable periodic update checking', }, { 'name': 'automatic', - 'default': False, - 'type': 'enabler', + 'default': True, + 'type': 'bool', 'description': 'Automaticly update when update is available', }, ], diff --git a/couchpotato/core/plugins/updater/main.py b/couchpotato/core/plugins/updater/main.py index 2f0a4e44..5b2dea68 100644 --- a/couchpotato/core/plugins/updater/main.py +++ b/couchpotato/core/plugins/updater/main.py @@ -53,7 +53,7 @@ class Updater(Plugin): local = self.repo.getHead() remote = branch.getHead() - if local.getDate() < remote.getDate(): + if local.getDate() < remote.getDate(): if self.conf('automatic') and not self.updateFailed: self.doUpdate() else: @@ -76,4 +76,3 @@ class Updater(Plugin): def isEnabled(self): return Plugin.isEnabled(self) and Env.get('uses_git') - \ No newline at end of file