Browse Source

Fixed Plex notifications on latest PHT (protocol renamed to 'plex')

pull/2272/head
Dean Gardiner 12 years ago
parent
commit
0b00f2d9e6
  1. 4
      couchpotato/core/notifications/plex/main.py

4
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

Loading…
Cancel
Save