feat(subsonic): add MusicBrainz ID and Sort Name to getArtists

This commit is contained in:
Kendall Garner
2024-10-23 02:00:31 +00:00
committed by GitHub
parent 9c3b456165
commit 0a650de357
10 changed files with 206 additions and 9 deletions
+8
View File
@@ -104,6 +104,14 @@ func toArtistID3(r *http.Request, a model.Artist) responses.ArtistID3 {
return artist
}
func toArtistsID3(r *http.Request, artists model.Artists) []responses.ArtistID3 {
as := make([]responses.ArtistID3, len(artists))
for i, artist := range artists {
as[i] = toArtistID3(r, artist)
}
return as
}
func toGenres(genres model.Genres) *responses.Genres {
response := make([]responses.Genre, len(genres))
for i, g := range genres {