Fixed Plex notifications on latest PHT (protocol renamed to 'plex')
This commit is contained in:
@@ -52,7 +52,7 @@ class Plex(Notification):
|
|||||||
clients.remove(server.get('name').lower())
|
clients.remove(server.get('name').lower())
|
||||||
protocol = server.get('protocol', 'xbmchttp')
|
protocol = server.get('protocol', 'xbmchttp')
|
||||||
|
|
||||||
if protocol in ['xbmcjson', 'xbmchttp']:
|
if protocol in ['plex', 'xbmcjson', 'xbmchttp']:
|
||||||
self.clients[server.get('name')] = {
|
self.clients[server.get('name')] = {
|
||||||
'name': server.get('name'),
|
'name': server.get('name'),
|
||||||
'address': server.get('address'),
|
'address': server.get('address'),
|
||||||
@@ -164,7 +164,7 @@ class Plex(Notification):
|
|||||||
}
|
}
|
||||||
|
|
||||||
for name, client in self.clients.items():
|
for name, client in self.clients.items():
|
||||||
if client['protocol'] == 'xbmcjson':
|
if client['protocol'] in ['xbmcjson', 'plex']:
|
||||||
total += 1
|
total += 1
|
||||||
if self.sendJSON('GUI.ShowNotification', params, client):
|
if self.sendJSON('GUI.ShowNotification', params, client):
|
||||||
successful += 1
|
successful += 1
|
||||||
|
|||||||
Reference in New Issue
Block a user