diff --git a/couchpotato/core/notifications/base.py b/couchpotato/core/notifications/base.py index b1a5139..3909d34 100644 --- a/couchpotato/core/notifications/base.py +++ b/couchpotato/core/notifications/base.py @@ -12,7 +12,7 @@ class Notification(Plugin): default_title = 'CouchPotato' test_message = 'ZOMG Lazors Pewpewpew!' - listen_to = ['movie.downloaded', 'movie.snatched'] + listen_to = ['movie.downloaded', 'movie.snatched', 'updater.available'] dont_listen_to = [] def __init__(self): diff --git a/couchpotato/core/plugins/updater/__init__.py b/couchpotato/core/plugins/updater/__init__.py index c5ccd50..3b17f20 100644 --- a/couchpotato/core/plugins/updater/__init__.py +++ b/couchpotato/core/plugins/updater/__init__.py @@ -19,6 +19,12 @@ config = [{ 'type': 'enabler', }, { + 'name': 'notification', + 'type': 'bool', + 'default': True, + 'description': 'Send a notification if an update is available.', + }, + { 'name': 'automatic', 'default': True, 'type': 'bool', diff --git a/couchpotato/core/plugins/updater/main.py b/couchpotato/core/plugins/updater/main.py index eb99b76..1970ede 100644 --- a/couchpotato/core/plugins/updater/main.py +++ b/couchpotato/core/plugins/updater/main.py @@ -78,6 +78,7 @@ class Updater(Plugin): self.doUpdate() else: self.update_version = remote.hash + fireEvent('updater.available', message = 'A new update is available', data = self.getVersion()) self.last_check = time.time()