mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Fixed small bug
This commit is contained in:
parent
f0010fd6bb
commit
8e37a902e5
15
utilities.py
15
utilities.py
@ -281,14 +281,21 @@ def loadCache():
|
|||||||
fl.close()
|
fl.close()
|
||||||
|
|
||||||
# remove corrupt caching from previous versions
|
# remove corrupt caching from previous versions
|
||||||
|
toremove = []
|
||||||
for k in cachedTracks:
|
for k in cachedTracks:
|
||||||
if cachedTracks[k] == "":
|
if cachedTracks[k] == "":
|
||||||
del cachedTracks[k]
|
toremove.append(k)
|
||||||
log("Removed invalid cache key: " + str(k))
|
for k in toremove:
|
||||||
|
del cachedTracks[k]
|
||||||
|
log("Removed invalid cache key: " + str(k))
|
||||||
|
|
||||||
|
toremove = []
|
||||||
for k in cachedArtists:
|
for k in cachedArtists:
|
||||||
if cachedArtists[k] == "":
|
if cachedArtists[k] == "":
|
||||||
del cachedArtists[k]
|
toremove.append(k)
|
||||||
log("Removed invalid cache key: " + str(k))
|
for k in toremove:
|
||||||
|
del cachedArtists[k]
|
||||||
|
log("Removed invalid cache key: " + str(k))
|
||||||
|
|
||||||
def getTrackImage(artists,title,fast=False):
|
def getTrackImage(artists,title,fast=False):
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user