mirror of
https://github.com/navidrome/navidrome.git
synced 2026-10-19 00:45:59 +00:00
Integrate ArtistIndex logic into Artist
This commit is contained in:
parent
035fdaeb96
commit
c0beaa6377
17 changed files with 110 additions and 427 deletions
|
|
@ -50,8 +50,8 @@ func (c *BrowsingController) getArtistIndex(r *http.Request, ifModifiedSince tim
|
|||
res.Index[i].Name = idx.ID
|
||||
res.Index[i].Artists = make([]responses.Artist, len(idx.Artists))
|
||||
for j, a := range idx.Artists {
|
||||
res.Index[i].Artists[j].Id = a.ArtistID
|
||||
res.Index[i].Artists[j].Name = a.Artist
|
||||
res.Index[i].Artists[j].Id = a.ID
|
||||
res.Index[i].Artists[j].Name = a.Name
|
||||
res.Index[i].Artists[j].AlbumCount = a.AlbumCount
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue