From 7da86291dc7006055d7fcbee47e2d152198f47f5 Mon Sep 17 00:00:00 2001 From: aditya-K2 Date: Thu, 25 Nov 2021 20:08:51 +0530 Subject: [PATCH] Replacing / with _ which lead to errors when creating image. --- cache/cache.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cache/cache.go b/cache/cache.go index c4afacc..dc6b84f 100644 --- a/cache/cache.go +++ b/cache/cache.go @@ -59,5 +59,5 @@ func WriteCache(path string) { } func GenerateName(artist, album string) string { - return strings.Replace(fmt.Sprintf("%s-%s.jpg", artist, album), " ", "_", -1) + return strings.Replace(strings.Replace(fmt.Sprintf("%s-%s.jpg", artist, album), " ", "_", -1), "/", "_", -1) }