From bafd2f2d93d0dc81e3a08c0c669321a7fe4efaa8 Mon Sep 17 00:00:00 2001 From: Krateng Date: Tue, 2 Apr 2019 11:39:20 +0200 Subject: [PATCH] Consistency of custom track images --- utilities.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utilities.py b/utilities.py index 7c5b601..8c583bc 100644 --- a/utilities.py +++ b/utilities.py @@ -399,7 +399,7 @@ track_cache = caching.Cache.create(name="track_cache",maxage=cacheage,maxage_neg def getTrackImage(artists,title,fast=False): obj = (frozenset(artists),title) - filename = "-".join([re.sub("[^a-zA-Z0-9]","",artist) for artist in artists]) + "_" + re.sub("[^a-zA-Z0-9]","",title) + filename = "-".join([re.sub("[^a-zA-Z0-9]","",artist) for artist in sorted(artists)]) + "_" + re.sub("[^a-zA-Z0-9]","",title) if filename == "": filename = str(hash(obj)) filepath = "images/tracks/" + filename