Fix ignoring Companion updates for the playing item
This commit is contained in:
parent
7d61f153c3
commit
a2d0f98c9b
1 changed files with 5 additions and 2 deletions
|
@ -1290,11 +1290,14 @@ class LibrarySync(Thread):
|
||||||
if status == 'buffering':
|
if status == 'buffering':
|
||||||
# Drop buffering messages immediately
|
# Drop buffering messages immediately
|
||||||
continue
|
continue
|
||||||
plex_id = str(item['ratingKey'])
|
plex_id = item['ratingKey']
|
||||||
|
skip = False
|
||||||
for pid in (0, 1, 2):
|
for pid in (0, 1, 2):
|
||||||
if plex_id == state.PLAYER_STATES[pid]['plex_id']:
|
if plex_id == state.PLAYER_STATES[pid]['plex_id']:
|
||||||
# Kodi is playing this item - no need to set the playstate
|
# Kodi is playing this item - no need to set the playstate
|
||||||
continue
|
skip = True
|
||||||
|
if skip:
|
||||||
|
continue
|
||||||
sessionKey = item['sessionKey']
|
sessionKey = item['sessionKey']
|
||||||
# Do we already have a sessionKey stored?
|
# Do we already have a sessionKey stored?
|
||||||
if sessionKey not in self.sessionKeys:
|
if sessionKey not in self.sessionKeys:
|
||||||
|
|
Loading…
Add table
Reference in a new issue