Ignore PMS message related to an entire library

This commit is contained in:
croneter 2017-09-08 12:12:29 +02:00
parent 274ed4b430
commit 1f0baf5128

View file

@ -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