refactor: change output file name

This commit is contained in:
Mathis Maquenne
2025-05-19 13:41:25 +02:00
parent 0a9e6c9a4d
commit e50395ae1d
+1 -2
View File
@@ -2,7 +2,6 @@ package deezer
import (
"fmt"
"strings"
"github.com/flytam/filenamify"
)
@@ -44,7 +43,7 @@ func (s *Song) GetFileName(resourceType string, song *Song, media *Media) string
trackNumber = song.TrackNumber + "."
}
fileName := fmt.Sprintf("%s %s - %s.%s", trackNumber, s.GetTitle(), strings.Join(song.Contributors.MainArtists, ", "), ext)
fileName := fmt.Sprintf("%s %s - %s.%s", trackNumber, s.Artist, s.GetTitle(), ext)
fileName, _ = filenamify.Filenamify(fileName, filenamify.Options{})
return fileName