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

This commit is contained in:
Dean Gardiner
2013-09-30 00:44:36 +13:00
parent 1b96489656
commit 0b00f2d9e6

View File

@@ -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