Fix PKC restoring cache directories
This commit is contained in:
parent
83833d76b3
commit
2d8bd3051a
1 changed files with 2 additions and 2 deletions
|
@ -337,13 +337,13 @@ class Artwork():
|
||||||
LOG.debug("Deleting cached thumbnail: %s" % path)
|
LOG.debug("Deleting cached thumbnail: %s" % path)
|
||||||
if exists(path):
|
if exists(path):
|
||||||
rmtree(tryDecode(path), ignore_errors=True)
|
rmtree(tryDecode(path), ignore_errors=True)
|
||||||
self.restoreCacheDirectories()
|
|
||||||
cursor.execute("DELETE FROM texture WHERE url = ?", (url,))
|
cursor.execute("DELETE FROM texture WHERE url = ?", (url,))
|
||||||
connection.commit()
|
connection.commit()
|
||||||
finally:
|
finally:
|
||||||
connection.close()
|
connection.close()
|
||||||
|
|
||||||
def restoreCacheDirectories(self):
|
@staticmethod
|
||||||
|
def restoreCacheDirectories():
|
||||||
LOG.info("Restoring cache directories...")
|
LOG.info("Restoring cache directories...")
|
||||||
paths = ("","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","Video","plex")
|
paths = ("","0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f","Video","plex")
|
||||||
for p in paths:
|
for p in paths:
|
||||||
|
|
Loading…
Reference in a new issue