From 5437f1a3554fef3d12c7a614322838118e29d5ec Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Tue, 11 Oct 2016 18:52:59 +0200 Subject: [PATCH] Ommit Plex DVR status messages - Hopefully fixes #110 --- resources/lib/librarysync.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 2a0188f7..1fdef080 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -1492,9 +1492,15 @@ class LibrarySync(Thread): "processing queue" for later """ for item in data: + if 'tv.plex' in item.get('identifier', ''): + # Ommit Plex DVR messages - the Plex IDs are not corresponding + # (DVR ratingKeys are not unique and might correspond to a + # movie or episode) + continue typus = int(item.get('type', 0)) state = int(item.get('state', 0)) if state == 9 or typus in (1, 4, 10): + # Only process deleted items OR movies, episodes, tracks/songs itemId = str(item.get('itemID', '0')) if itemId == '0': log.warn('Received malformed PMS message: %s' % item)