From 18e6135afd668b074beef7450dab48f5f781bae1 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Sun, 23 Oct 2016 16:48:59 +0200 Subject: [PATCH] Process background sync every 5 seconds --- 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 1fd905b2..6a036cc6 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -1847,8 +1847,9 @@ class LibrarySync(Thread): window('plex_dbScan', clear=True) elif enableBackgroundSync: # Check back whether we should process something - # Only do this once every 10 seconds - if now - lastProcessing > 10: + # Only do this once every while (otherwise, potentially + # many screen refreshes lead to flickering) + if now - lastProcessing > 5: lastProcessing = now processItems() # See if there is a PMS message we need to handle