From 2d8bd3051a15224836ff47ede8f9ed09c0010b74 Mon Sep 17 00:00:00 2001 From: croneter Date: Sun, 28 Jan 2018 17:36:36 +0100 Subject: [PATCH] Fix PKC restoring cache directories --- resources/lib/artwork.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/artwork.py b/resources/lib/artwork.py index 2146deb7..61768b04 100644 --- a/resources/lib/artwork.py +++ b/resources/lib/artwork.py @@ -337,13 +337,13 @@ class Artwork(): LOG.debug("Deleting cached thumbnail: %s" % path) if exists(path): rmtree(tryDecode(path), ignore_errors=True) - self.restoreCacheDirectories() cursor.execute("DELETE FROM texture WHERE url = ?", (url,)) connection.commit() finally: connection.close() - def restoreCacheDirectories(self): + @staticmethod + def restoreCacheDirectories(): LOG.info("Restoring cache directories...") paths = ("","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","Video","plex") for p in paths: