Send Subsonic formatted response on marshalling errors
This commit is contained in:
@@ -61,6 +61,11 @@ type Subsonic struct {
|
||||
LyricsList *LyricsList `xml:"lyricsList,omitempty" json:"lyricsList,omitempty"`
|
||||
}
|
||||
|
||||
const (
|
||||
StatusOK = "ok"
|
||||
StatusFailed = "failed"
|
||||
)
|
||||
|
||||
type JsonWrapper struct {
|
||||
Subsonic Subsonic `json:"subsonic-response"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user