refactor(tags): use comma to join contributors
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user