Replacing / with _ which lead to errors when creating image.

This commit is contained in:
aditya-K2 2021-11-25 20:08:51 +05:30
parent e9bcb8ff63
commit 7da86291dc

2
cache/cache.go vendored
View File

@ -59,5 +59,5 @@ func WriteCache(path string) {
} }
func GenerateName(artist, album string) 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)
} }