add licence

This commit is contained in:
sentriz
2019-04-11 18:27:45 +01:00
parent ec53d04730
commit 76ad2ec4eb
25 changed files with 2978 additions and 20 deletions

View File

@@ -94,3 +94,8 @@ type Child struct {
BitRate uint `xml:"bitRate,attr,omitempty" json:"bitrate,omitempty"`
Path string `xml:"path,attr,omitempty" json:"path,omitempty"`
}
type Licence struct {
XMLName xml.Name `xml:"license" json:"-"`
Valid bool `xml:"valid,attr,omitempty" json:"valid,omitempty"`
}

View File

@@ -7,7 +7,7 @@ import (
)
var (
apiVersion = "1.16.1"
apiVersion = "1.9.0"
xmlns = "http://subsonic.org/restapi"
)
@@ -25,6 +25,7 @@ type Response struct {
Artist *Artist `xml:"artist" json:"artist,omitempty"`
MusicDirectory *Directory `xml:"directory" json:"directory,omitempty"`
RandomSongs *RandomSongs `xml:"randomSongs" json:"randomSongs,omitempty"`
Licence *Licence `xml:"license" json:"license,omitempty"`
}
type Error struct {