From bc26d53945c58f0bdf83187da49637529f9c19a8 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 28 Jan 2018 13:55:00 +0100 Subject: [PATCH] Fix Kodi suddenly marking item as played --- resources/lib/librarysync.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 8c6dc8c8..f64014ab 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -1290,6 +1290,10 @@ class LibrarySync(Thread): if status == 'buffering': continue ratingKey = str(item['ratingKey']) + for pid in (1, 2, 3): + if ratingKey == state.PLAYER_STATES[pid]['plex_id']: + # Kodi is playing this item - no need to set the playstate + continue with plexdb.Get_Plex_DB() as plex_db: kodi_info = plex_db.getItem_byId(ratingKey) if kodi_info is None: