From 1f0baf5128f1e818e4539c6bc301e10f09501aa1 Mon Sep 17 00:00:00 2001 From: croneter Date: Fri, 8 Sep 2017 12:12:29 +0200 Subject: [PATCH] Ignore PMS message related to an entire library --- resources/lib/librarysync.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index a9152cc0..64e8f28b 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -1269,6 +1269,9 @@ class LibrarySync(Thread): if item['event'] != 'ended': # Scan still going on, so skip for now continue + elif item['Activity'].get('Context') is None: + # Not related to any Plex element, but entire library + continue elif item['Activity']['type'] != 'library.refresh.items': # Not the type of message relevant for us continue