Browse Source

Insert the name of the program being updated in the notifier

This is useful in the case several programs use the same channel
to notify for updates, it is now possible to know which program
was updated within the same channel instead of guessing
pull/6884/head
Camilo Sperberg 9 years ago
parent
commit
21c71973a9
  1. 2
      couchpotato/core/_base/updater/main.py

2
couchpotato/core/_base/updater/main.py

@ -98,7 +98,7 @@ class Updater(Plugin):
if self.conf('notification'): if self.conf('notification'):
info = self.updater.info() info = self.updater.info()
version_date = datetime.fromtimestamp(info['update_version']['date']) version_date = datetime.fromtimestamp(info['update_version']['date'])
fireEvent('updater.updated', 'Updated to a new version with hash "%s", this version is from %s' % (info['update_version']['hash'], version_date), data = info) fireEvent('updater.updated', 'CouchPotato: Updated to a new version with hash "%s", this version is from %s' % (info['update_version']['hash'], version_date), data = info)
except: except:
log.error('Failed notifying for update: %s', traceback.format_exc()) log.error('Failed notifying for update: %s', traceback.format_exc())

Loading…
Cancel
Save