From 03fb6506f4b6a38c1d58ffbcf084598ec8f3abce Mon Sep 17 00:00:00 2001 From: croneter Date: Mon, 5 Nov 2018 14:18:52 +0100 Subject: [PATCH] PEP8 --- resources/lib/artwork.py | 8 ++++---- resources/lib/sync.py | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/resources/lib/artwork.py b/resources/lib/artwork.py index c4fe6305..f2f6b92f 100644 --- a/resources/lib/artwork.py +++ b/resources/lib/artwork.py @@ -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(): diff --git a/resources/lib/sync.py b/resources/lib/sync.py index d13bf3d2..010ed103 100644 --- a/resources/lib/sync.py +++ b/resources/lib/sync.py @@ -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__()