Ignore PMS message related to an entire library
This commit is contained in:
parent
274ed4b430
commit
1f0baf5128
1 changed files with 3 additions and 0 deletions
|
@ -1269,6 +1269,9 @@ class LibrarySync(Thread):
|
||||||
if item['event'] != 'ended':
|
if item['event'] != 'ended':
|
||||||
# Scan still going on, so skip for now
|
# Scan still going on, so skip for now
|
||||||
continue
|
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':
|
elif item['Activity']['type'] != 'library.refresh.items':
|
||||||
# Not the type of message relevant for us
|
# Not the type of message relevant for us
|
||||||
continue
|
continue
|
||||||
|
|
Loading…
Reference in a new issue