parent
8438cc088c
commit
6b64f3b66c
2 changed files with 8 additions and 4 deletions
|
@ -1392,9 +1392,9 @@ class LibrarySync(Thread):
|
||||||
"""
|
"""
|
||||||
typus = message.get('type')
|
typus = message.get('type')
|
||||||
if typus == 'playing':
|
if typus == 'playing':
|
||||||
self.process_playing(message['_children'])
|
self.process_playing(message['PlaySessionStateNotification'])
|
||||||
elif typus == 'timeline':
|
elif typus == 'timeline':
|
||||||
self.process_timeline(message['_children'])
|
self.process_timeline(message['TimelineEntry'])
|
||||||
|
|
||||||
def multi_delete(self, liste, deleteListe):
|
def multi_delete(self, liste, deleteListe):
|
||||||
"""
|
"""
|
||||||
|
|
|
@ -41,11 +41,15 @@ class WebSocket(threading.Thread):
|
||||||
log.error('Error decoding message from websocket: %s' % ex)
|
log.error('Error decoding message from websocket: %s' % ex)
|
||||||
log.error(message)
|
log.error(message)
|
||||||
return False
|
return False
|
||||||
|
try:
|
||||||
|
message = message['NotificationContainer']
|
||||||
|
except KeyError:
|
||||||
|
log.error('Could not parse PMS message: %s' % message)
|
||||||
|
return False
|
||||||
# Triage
|
# Triage
|
||||||
typus = message.get('type')
|
typus = message.get('type')
|
||||||
if typus is None:
|
if typus is None:
|
||||||
log.debug('No message type, dropping message: %s' % message)
|
log.error('No message type, dropping message: %s' % message)
|
||||||
return False
|
return False
|
||||||
log.debug('Received message from PMS server: %s' % message)
|
log.debug('Received message from PMS server: %s' % message)
|
||||||
# Drop everything we're not interested in
|
# Drop everything we're not interested in
|
||||||
|
|
Loading…
Reference in a new issue