Only start downloading art AFTER sync completed
- Will speed up sync
This commit is contained in:
parent
cd65a93989
commit
1a4660571b
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue