Replacing / with _ which lead to errors when creating image.
This commit is contained in:
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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user