This commit is contained in:
croneter 2018-11-05 14:18:52 +01:00
parent 58d34e75f0
commit 03fb6506f4
2 changed files with 5 additions and 5 deletions

View file

@ -35,7 +35,7 @@ def double_urldecode(text):
@utils.thread_methods(add_suspends=IMAGE_CACHING_SUSPENDS) @utils.thread_methods(add_suspends=IMAGE_CACHING_SUSPENDS)
class Image_Cache_Thread(Thread): class ImageCachingThread(Thread):
sleep_between = 50 sleep_between = 50
# Potentially issues with limited number of threads # Potentially issues with limited number of threads
# Hence let Kodi wait till download is successful # Hence let Kodi wait till download is successful
@ -46,7 +46,7 @@ class Image_Cache_Thread(Thread):
Thread.__init__(self) Thread.__init__(self)
def run(self): def run(self):
LOG.info("---===### Starting Image_Cache_Thread ###===---") LOG.info("---===### Starting ImageCachingThread ###===---")
stopped = self.stopped stopped = self.stopped
suspended = self.suspended suspended = self.suspended
queue = self.queue queue = self.queue
@ -57,7 +57,7 @@ class Image_Cache_Thread(Thread):
# Set in service.py # Set in service.py
if stopped(): if stopped():
# Abort was requested while waiting. We should exit # Abort was requested while waiting. We should exit
LOG.info("---===### Stopped Image_Cache_Thread ###===---") LOG.info("---===### Stopped ImageCachingThread ###===---")
return return
xbmc.sleep(1000) xbmc.sleep(1000)
@ -119,7 +119,7 @@ class Image_Cache_Thread(Thread):
queue.task_done() queue.task_done()
# Sleep for a bit to reduce CPU strain # Sleep for a bit to reduce CPU strain
xbmc.sleep(sleep_between) xbmc.sleep(sleep_between)
LOG.info("---===### Stopped Image_Cache_Thread ###===---") LOG.info("---===### Stopped ImageCachingThread ###===---")
class Artwork(): class Artwork():

View file

@ -36,7 +36,7 @@ class Sync(backgroundthread.KillableThread):
# Show sync dialog even if user deactivated? # Show sync dialog even if user deactivated?
self.force_dialog = False self.force_dialog = False
if utils.settings('enableTextureCache') == "true": if utils.settings('enableTextureCache') == "true":
self.image_cache_thread = artwork.Image_Cache_Thread() self.image_cache_thread = artwork.ImageCachingThread()
# Lock used to wait on a full sync, e.g. on initial sync # Lock used to wait on a full sync, e.g. on initial sync
# self.lock = backgroundthread.threading.Lock() # self.lock = backgroundthread.threading.Lock()
super(Sync, self).__init__() super(Sync, self).__init__()