From e34472084c08b1126bd9df9b0469234075ba3ebe Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Mon, 30 Jan 2017 19:18:29 -0800 Subject: [PATCH] Add port to Slack connection when used with Mattermost --- plexpy/notifiers.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plexpy/notifiers.py b/plexpy/notifiers.py index 1c1ee6cc..a2228efa 100644 --- a/plexpy/notifiers.py +++ b/plexpy/notifiers.py @@ -2534,9 +2534,10 @@ class SLACK(Notifier): data['attachments'] = [attachment] host = urlparse(self.config['hook']).hostname + port = urlparse(self.config['hook']).port path = urlparse(self.config['hook']).path - http_handler = HTTPSConnection(host) + http_handler = HTTPSConnection(host, port) http_handler.request("POST", path, headers={'Content-type': "application/json"},