From 23384c5d9edc8c989d17eff62aa52deb79c66ee0 Mon Sep 17 00:00:00 2001 From: tomkat83 Date: Mon, 17 Oct 2016 23:15:05 +0200 Subject: [PATCH] Fix art not caching efficiently --- resources/lib/artwork.py | 2 +- resources/lib/librarysync.py | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/resources/lib/artwork.py b/resources/lib/artwork.py index ea6b6f17..545aa0ac 100644 --- a/resources/lib/artwork.py +++ b/resources/lib/artwork.py @@ -204,7 +204,7 @@ class Image_Cache_Thread(Thread): # We did not even get a timeout break queue.task_done() - log.debug('Downloaded art: %s' % double_urldecode(url)) + log.debug('Cached art: %s' % double_urldecode(url)) # Sleep for a bit to reduce CPU strain xbmc.sleep(sleep_between) log.info("---===### Stopped Image_Cache_Thread ###===---") diff --git a/resources/lib/librarysync.py b/resources/lib/librarysync.py index 1fdef080..6394cbf0 100644 --- a/resources/lib/librarysync.py +++ b/resources/lib/librarysync.py @@ -1850,9 +1850,7 @@ class LibrarySync(Thread): # Only do this once every 10 seconds if now - lastProcessing > 10: lastProcessing = now - window('plex_dbScan', value="true") processItems() - window('plex_dbScan', clear=True) # See if there is a PMS message we need to handle try: message = queue.get(block=False) @@ -1861,10 +1859,8 @@ class LibrarySync(Thread): continue # Got a message from PMS; process it else: - window('plex_dbScan', value="true") processMessage(message) queue.task_done() - window('plex_dbScan', clear=True) # NO sleep! continue else: