Fix ignoring Companion updates for the playing item

This commit is contained in:
croneter 2018-02-15 17:19:12 +01:00
parent 7d61f153c3
commit a2d0f98c9b

View file

@ -1290,10 +1290,13 @@ class LibrarySync(Thread):
if status == 'buffering':
# Drop buffering messages immediately
continue
plex_id = str(item['ratingKey'])
plex_id = item['ratingKey']
skip = False
for pid in (0, 1, 2):
if plex_id == state.PLAYER_STATES[pid]['plex_id']:
# Kodi is playing this item - no need to set the playstate
skip = True
if skip:
continue
sessionKey = item['sessionKey']
# Do we already have a sessionKey stored?