refactor(tags): use comma to join contributors

This commit is contained in:
Mathis Maquenne
2024-10-14 16:40:49 +02:00
parent cc16b17b88
commit 67107a5190
2 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -33,9 +33,9 @@ func (t *FLACTagger) AddTags(resource deezer.Resource, song *deezer.Song, cover
} }
t.addTag("TITLE", song.Title) t.addTag("TITLE", song.Title)
t.addTag("ARTIST", strings.Join(song.Contributors.MainArtists, " / ")) t.addTag("ARTIST", strings.Join(song.Contributors.MainArtists, ", "))
t.addTag("COMPOSER", strings.Join(song.Contributors.Composers, " / ")) t.addTag("COMPOSER", strings.Join(song.Contributors.Composers, ", "))
t.addTag("LYRICIST", strings.Join(song.Contributors.Authors, " / ")) t.addTag("LYRICIST", strings.Join(song.Contributors.Authors, ", "))
t.addTag("REPLAYGAIN_TRACK_GAIN", song.Gain) t.addTag("REPLAYGAIN_TRACK_GAIN", song.Gain)
t.addTag("ISRC", song.ISRC) t.addTag("ISRC", song.ISRC)
+3 -3
View File
@@ -30,9 +30,9 @@ func (t *ID3v2Tagger) AddTags(resource deezer.Resource, song *deezer.Song, cover
} }
t.addTag("TIT2", song.Title) t.addTag("TIT2", song.Title)
t.addTag("TPE1", strings.Join(song.Contributors.MainArtists, " / ")) t.addTag("TPE1", strings.Join(song.Contributors.MainArtists, ", "))
t.addTag("TCOM", strings.Join(song.Contributors.Composers, " / ")) t.addTag("TCOM", strings.Join(song.Contributors.Composers, ", "))
t.addTag("TEXT", strings.Join(song.Contributors.Authors, " / ")) t.addTag("TEXT", strings.Join(song.Contributors.Authors, ", "))
t.addTag("TLEN", song.Duration) t.addTag("TLEN", song.Duration)
t.addTXXXTag("GAIN", song.Gain) t.addTXXXTag("GAIN", song.Gain)
t.addTXXXTag("ISRC", song.ISRC) t.addTXXXTag("ISRC", song.ISRC)