This commit is contained in:
Krateng 2019-02-16 16:47:01 +01:00
parent 6540af0e55
commit dd73eae522
3 changed files with 3 additions and 2 deletions

1
images/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
cache

Binary file not shown.

View File

@ -213,14 +213,14 @@ cachedTracks = {}
cachedArtists = {}
def saveCache():
fl = open("mediacache","wb")
fl = open("images/cache","wb")
stream = pickle.dumps((cachedTracks,cachedArtists))
fl.write(stream)
fl.close()
def loadCache():
try:
fl = open("mediacache","rb")
fl = open("images/cache","rb")
except:
return