From 0b00f2d9e600109713038d9975e3322ef9d7ead3 Mon Sep 17 00:00:00 2001 From: Dean Gardiner Date: Mon, 30 Sep 2013 00:44:36 +1300 Subject: [PATCH] Fixed Plex notifications on latest PHT (protocol renamed to 'plex') --- couchpotato/core/notifications/plex/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/couchpotato/core/notifications/plex/main.py b/couchpotato/core/notifications/plex/main.py index 5558289d..19ca670d 100755 --- a/couchpotato/core/notifications/plex/main.py +++ b/couchpotato/core/notifications/plex/main.py @@ -52,7 +52,7 @@ class Plex(Notification): clients.remove(server.get('name').lower()) protocol = server.get('protocol', 'xbmchttp') - if protocol in ['xbmcjson', 'xbmchttp']: + if protocol in ['plex', 'xbmcjson', 'xbmchttp']: self.clients[server.get('name')] = { 'name': server.get('name'), 'address': server.get('address'), @@ -164,7 +164,7 @@ class Plex(Notification): } for name, client in self.clients.items(): - if client['protocol'] == 'xbmcjson': + if client['protocol'] in ['xbmcjson', 'plex']: total += 1 if self.sendJSON('GUI.ShowNotification', params, client): successful += 1