Only start downloading art AFTER sync completed

- Will speed up sync
This commit is contained in:
tomkat83 2016-10-17 22:48:01 +02:00
parent cd65a93989
commit 1a4660571b

View file

@ -126,7 +126,6 @@ def double_urldecode(text):
return unquote(unquote(text))
@ThreadMethodsAdditionalSuspend('suspend_LibraryThread')
@ThreadMethodsAdditionalStop('plex_shouldStop')
@ThreadMethods
class Image_Cache_Thread(Thread):
@ -145,6 +144,12 @@ class Image_Cache_Thread(Thread):
self.queue = queue
Thread.__init__(self)
def threadSuspended(self):
# Overwrite method to add TWO additional suspends
return (self._threadSuspended or
window('suspend_LibraryThread') or
window('plex_dbScan'))
def run(self):
threadStopped = self.threadStopped
threadSuspended = self.threadSuspended