From 5aebc8d191edd0eb47058dd622e41e692bfad125 Mon Sep 17 00:00:00 2001 From: Ricardo Tapia Date: Thu, 31 Dec 2015 15:34:53 -0600 Subject: [PATCH] slack config options --- plexpy/config.py | 18 +++++++++++++++++- plexpy/notifiers.py | 1 + 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/plexpy/config.py b/plexpy/config.py index 22219786..30947823 100644 --- a/plexpy/config.py +++ b/plexpy/config.py @@ -281,6 +281,22 @@ _CONFIG_DEFINITIONS = { 'PUSHOVER_ON_INTUP': (int, 'Pushover', 0), 'REFRESH_USERS_INTERVAL': (int, 'Monitoring', 12), 'REFRESH_USERS_ON_STARTUP': (int, 'Monitoring', 1), + 'SLACK_ENABLED': (int, 'Slack', 0), + 'SLACK_HOOK': (str, 'Slack', ''), + 'SLACK_CHANNEL': (str, 'Slack', ''), + 'SLACK_ICON_EMOJI': (str, 'Slack', ''), + 'SLACK_USERNAME': (str, 'Slack', ''), + 'SLACK_ON_PLAY': (int, 'Slack', 0), + 'SLACK_ON_STOP': (int, 'Slack', 0), + 'SLACK_ON_PAUSE': (int, 'Slack', 0), + 'SLACK_ON_RESUME': (int, 'Slack', 0), + 'SLACK_ON_BUFFER': (int, 'Slack', 0), + 'SLACK_ON_WATCHED': (int, 'Slack', 0), + 'SLACK_ON_CREATED': (int, 'Slack', 0), + 'SLACK_ON_EXTDOWN': (int, 'Slack', 0), + 'SLACK_ON_INTDOWN': (int, 'Slack', 0), + 'SLACK_ON_EXTUP': (int, 'Slack', 0), + 'SLACK_ON_INTUP': (int, 'Slack', 0), 'TELEGRAM_BOT_TOKEN': (str, 'Telegram', ''), 'TELEGRAM_ENABLED': (int, 'Telegram', 0), 'TELEGRAM_CHAT_ID': (str, 'Telegram', ''), @@ -448,4 +464,4 @@ class Config(object): if self.VIDEO_LOGGING_ENABLE == 0: self.MOVIE_LOGGING_ENABLE = 0 self.TV_LOGGING_ENABLE = 0 - self.CONFIG_VERSION = '1' \ No newline at end of file + self.CONFIG_VERSION = '1' diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index 3dfb7b9b..485569c0 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -1652,6 +1652,7 @@ class SLACK(object): }, {'label': 'Slack Icon Emoji', 'value': self.icon_emoji, + 'description': 'Slack Icon emoji', 'name': 'Slack Icon', 'input_type': 'text' }