PEP8
This commit is contained in:
parent
58d34e75f0
commit
03fb6506f4
2 changed files with 5 additions and 5 deletions
|
@ -35,7 +35,7 @@ def double_urldecode(text):
|
|||
|
||||
|
||||
@utils.thread_methods(add_suspends=IMAGE_CACHING_SUSPENDS)
|
||||
class Image_Cache_Thread(Thread):
|
||||
class ImageCachingThread(Thread):
|
||||
sleep_between = 50
|
||||
# Potentially issues with limited number of threads
|
||||
# Hence let Kodi wait till download is successful
|
||||
|
@ -46,7 +46,7 @@ class Image_Cache_Thread(Thread):
|
|||
Thread.__init__(self)
|
||||
|
||||
def run(self):
|
||||
LOG.info("---===### Starting Image_Cache_Thread ###===---")
|
||||
LOG.info("---===### Starting ImageCachingThread ###===---")
|
||||
stopped = self.stopped
|
||||
suspended = self.suspended
|
||||
queue = self.queue
|
||||
|
@ -57,7 +57,7 @@ class Image_Cache_Thread(Thread):
|
|||
# Set in service.py
|
||||
if stopped():
|
||||
# Abort was requested while waiting. We should exit
|
||||
LOG.info("---===### Stopped Image_Cache_Thread ###===---")
|
||||
LOG.info("---===### Stopped ImageCachingThread ###===---")
|
||||
return
|
||||
xbmc.sleep(1000)
|
||||
|
||||
|
@ -119,7 +119,7 @@ class Image_Cache_Thread(Thread):
|
|||
queue.task_done()
|
||||
# Sleep for a bit to reduce CPU strain
|
||||
xbmc.sleep(sleep_between)
|
||||
LOG.info("---===### Stopped Image_Cache_Thread ###===---")
|
||||
LOG.info("---===### Stopped ImageCachingThread ###===---")
|
||||
|
||||
|
||||
class Artwork():
|
||||
|
|
|
@ -36,7 +36,7 @@ class Sync(backgroundthread.KillableThread):
|
|||
# Show sync dialog even if user deactivated?
|
||||
self.force_dialog = False
|
||||
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
|
||||
# self.lock = backgroundthread.threading.Lock()
|
||||
super(Sync, self).__init__()
|
||||
|
|
Loading…
Reference in a new issue