From 255726000241d3c6d51a75be25c380be99bff565 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sun, 23 Oct 2016 16:55:28 +0200 Subject: [PATCH] Remove deleted PMS items immediately --- resources/lib/librarysync.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 6a036cc6..b4f211c3 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -1394,9 +1394,10 @@ class LibrarySync(Thread): now = getUnixTimestamp() deleteListe = [] for i, item in enumerate(self.itemsToProcess): - if now - item['timestamp'] < self.saftyMargin: + if (now - item['timestamp'] < self.saftyMargin and + item['state'] != 9): # We haven't waited long enough for the PMS to finish - # processing the item. Do it later + # processing the item. Do it later (excepting deletions) continue if item['state'] == 9: successful = self.process_deleteditems(item)