Fix KeyErrors

This commit is contained in:
croneter 2018-02-04 12:22:10 +01:00
parent 57ec06ae4d
commit 820b514740

View file

@ -1290,7 +1290,7 @@ class LibrarySync(Thread):
if status == 'buffering': if status == 'buffering':
continue continue
ratingKey = str(item['ratingKey']) ratingKey = str(item['ratingKey'])
for pid in (1, 2, 3): for pid in (0, 1, 2):
if ratingKey == state.PLAYER_STATES[pid]['plex_id']: if ratingKey == 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 continue