Replacing / with _ which lead to errors when creating image.
This commit is contained in:
parent
e9bcb8ff63
commit
7da86291dc
2
cache/cache.go
vendored
2
cache/cache.go
vendored
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user