add licence
This commit is contained in:
@@ -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"`
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user