mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Whoops
This commit is contained in:
parent
6540af0e55
commit
dd73eae522
1
images/.gitignore
vendored
Normal file
1
images/.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
cache
|
BIN
mediacache
BIN
mediacache
Binary file not shown.
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user