From a2d0f98c9bdf4ddd61533906765670afba99eab9 Mon Sep 17 00:00:00 2001 From: croneter Date: Thu, 15 Feb 2018 17:19:12 +0100 Subject: [PATCH] Fix ignoring Companion updates for the playing item --- resources/lib/librarysync.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index b7004df2..6d4dc344 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -1290,11 +1290,14 @@ 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 - continue + skip = True + if skip: + continue sessionKey = item['sessionKey'] # Do we already have a sessionKey stored? if sessionKey not in self.sessionKeys: