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)) return unquote(unquote(text))
@ThreadMethodsAdditionalSuspend('suspend_LibraryThread')
@ThreadMethodsAdditionalStop('plex_shouldStop') @ThreadMethodsAdditionalStop('plex_shouldStop')
@ThreadMethods @ThreadMethods
class Image_Cache_Thread(Thread): class Image_Cache_Thread(Thread):
@ -145,6 +144,12 @@ class Image_Cache_Thread(Thread):
self.queue = queue self.queue = queue
Thread.__init__(self) 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): def run(self):
threadStopped = self.threadStopped threadStopped = self.threadStopped
threadSuspended = self.threadSuspended threadSuspended = self.threadSuspended