mirror of
https://github.com/navidrome/navidrome.git
synced 2026-11-07 02:38:50 +01:00
getIndexes returning list of artists and ignoredArticles
This commit is contained in:
parent
e0f214d356
commit
8e482bc494
3 changed files with 26 additions and 10 deletions
|
|
@ -2,13 +2,21 @@ package responses
|
|||
|
||||
import "encoding/xml"
|
||||
|
||||
type Index struct {
|
||||
XMLName xml.Name `xml:"index"`
|
||||
Name string `xml:"name,attr"`
|
||||
type IdxArtist struct {
|
||||
XMLName xml.Name `xml:"artist"`
|
||||
Id string `xml:"id,attr"`
|
||||
Name string `xml:"name,attr"`
|
||||
}
|
||||
|
||||
type IdxIndex struct {
|
||||
XMLName xml.Name `xml:"index"`
|
||||
Name string `xml:"name,attr"`
|
||||
Artists []IdxArtist `xml:"index"`
|
||||
}
|
||||
|
||||
type ArtistIndex struct {
|
||||
XMLName xml.Name `xml:"indexes"`
|
||||
Index []Index `xml:"indexes"`
|
||||
XMLName xml.Name `xml:"indexes"`
|
||||
Index []IdxIndex `xml:"indexes"`
|
||||
IgnoredArticles string `xml:"ignoredArticles,attr"`
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue