feat(subsonic)!: don't return gonic version from responses
This commit is contained in:
@@ -18,7 +18,6 @@ type Response struct {
|
||||
Version string `xml:"version,attr" json:"version"`
|
||||
XMLNS string `xml:"xmlns,attr" json:"-"`
|
||||
Type string `xml:"type,attr" json:"type"`
|
||||
GonicVersion string `xml:"gonicVersion,attr" json:"gonicVersion"`
|
||||
Error *Error `xml:"error" json:"error,omitempty"`
|
||||
Albums *Albums `xml:"albumList" json:"albumList,omitempty"`
|
||||
AlbumsTwo *Albums `xml:"albumList2" json:"albumList2,omitempty"`
|
||||
@@ -50,11 +49,10 @@ type Response struct {
|
||||
|
||||
func NewResponse() *Response {
|
||||
return &Response{
|
||||
Status: "ok",
|
||||
XMLNS: xmlns,
|
||||
Version: apiVersion,
|
||||
Type: gonic.Name,
|
||||
GonicVersion: gonic.Version,
|
||||
Status: "ok",
|
||||
XMLNS: xmlns,
|
||||
Version: apiVersion,
|
||||
Type: gonic.Name,
|
||||
}
|
||||
}
|
||||
|
||||
@@ -82,8 +80,7 @@ func NewError(code int, message string, a ...interface{}) *Response {
|
||||
Code: code,
|
||||
Message: fmt.Sprintf(message, a...),
|
||||
},
|
||||
Type: gonic.Name,
|
||||
GonicVersion: gonic.Version,
|
||||
Type: gonic.Name,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"albumList": {
|
||||
"album": [
|
||||
{
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"albumList": {
|
||||
"album": [
|
||||
{
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"albumList": {
|
||||
"album": [
|
||||
{
|
||||
|
||||
@@ -3,20 +3,32 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"albumList": {
|
||||
"album": [
|
||||
{
|
||||
"id": "al-8",
|
||||
"coverArt": "al-8",
|
||||
"artist": "13th Floor Lowervators",
|
||||
"title": "(1967) Easter Nowhere",
|
||||
"id": "al-16",
|
||||
"coverArt": "al-16",
|
||||
"artist": "Swell Maps",
|
||||
"title": "(1980) Jane From Occupied Europe",
|
||||
"album": "",
|
||||
"parent": "al-7",
|
||||
"parent": "al-15",
|
||||
"isDir": true,
|
||||
"name": "",
|
||||
"songCount": 10,
|
||||
"duration": 2609,
|
||||
"songCount": 16,
|
||||
"duration": 3040,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "al-19",
|
||||
"coverArt": "al-19",
|
||||
"artist": "Ten Years After",
|
||||
"title": "(1967) Ten Years After",
|
||||
"album": "",
|
||||
"parent": "al-18",
|
||||
"isDir": true,
|
||||
"name": "",
|
||||
"songCount": 15,
|
||||
"duration": 3812,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
@@ -33,16 +45,29 @@
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "al-16",
|
||||
"coverArt": "al-16",
|
||||
"artist": "Swell Maps",
|
||||
"title": "(1980) Jane From Occupied Europe",
|
||||
"id": "al-3",
|
||||
"coverArt": "al-3",
|
||||
"artist": "Jah Wobble, The Edge, Holger Czukay",
|
||||
"title": "(1983) Snake Charmer",
|
||||
"album": "",
|
||||
"parent": "al-15",
|
||||
"parent": "al-2",
|
||||
"isDir": true,
|
||||
"name": "",
|
||||
"songCount": 16,
|
||||
"duration": 3040,
|
||||
"songCount": 5,
|
||||
"duration": 1871,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "al-21",
|
||||
"coverArt": "al-21",
|
||||
"artist": "Captain Beefheart",
|
||||
"title": "(1970) Lick My Decals Off, Bitch",
|
||||
"album": "",
|
||||
"parent": "al-20",
|
||||
"isDir": true,
|
||||
"name": "",
|
||||
"songCount": 15,
|
||||
"duration": 2324,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
@@ -58,6 +83,32 @@
|
||||
"duration": 2738,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "al-8",
|
||||
"coverArt": "al-8",
|
||||
"artist": "13th Floor Lowervators",
|
||||
"title": "(1967) Easter Nowhere",
|
||||
"album": "",
|
||||
"parent": "al-7",
|
||||
"isDir": true,
|
||||
"name": "",
|
||||
"songCount": 10,
|
||||
"duration": 2609,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "al-9",
|
||||
"coverArt": "al-9",
|
||||
"artist": "13th Floor Lowervators",
|
||||
"title": "(1966) The Psychedelic Sounds of the 13th Floor Elevators",
|
||||
"album": "",
|
||||
"parent": "al-7",
|
||||
"isDir": true,
|
||||
"name": "",
|
||||
"songCount": 21,
|
||||
"duration": 4222,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "al-6",
|
||||
"artist": "A Certain Ratio",
|
||||
@@ -82,58 +133,6 @@
|
||||
"songCount": 9,
|
||||
"duration": 2169,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "al-9",
|
||||
"coverArt": "al-9",
|
||||
"artist": "13th Floor Lowervators",
|
||||
"title": "(1966) The Psychedelic Sounds of the 13th Floor Elevators",
|
||||
"album": "",
|
||||
"parent": "al-7",
|
||||
"isDir": true,
|
||||
"name": "",
|
||||
"songCount": 21,
|
||||
"duration": 4222,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "al-21",
|
||||
"coverArt": "al-21",
|
||||
"artist": "Captain Beefheart",
|
||||
"title": "(1970) Lick My Decals Off, Bitch",
|
||||
"album": "",
|
||||
"parent": "al-20",
|
||||
"isDir": true,
|
||||
"name": "",
|
||||
"songCount": 15,
|
||||
"duration": 2324,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "al-3",
|
||||
"coverArt": "al-3",
|
||||
"artist": "Jah Wobble, The Edge, Holger Czukay",
|
||||
"title": "(1983) Snake Charmer",
|
||||
"album": "",
|
||||
"parent": "al-2",
|
||||
"isDir": true,
|
||||
"name": "",
|
||||
"songCount": 5,
|
||||
"duration": 1871,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
},
|
||||
{
|
||||
"id": "al-19",
|
||||
"coverArt": "al-19",
|
||||
"artist": "Ten Years After",
|
||||
"title": "(1967) Ten Years After",
|
||||
"album": "",
|
||||
"parent": "al-18",
|
||||
"isDir": true,
|
||||
"name": "",
|
||||
"songCount": 15,
|
||||
"duration": 3812,
|
||||
"created": "0001-01-01T00:00:00Z"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"albumList2": {
|
||||
"album": [
|
||||
{
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"albumList2": {
|
||||
"album": [
|
||||
{
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"albumList2": {
|
||||
"album": [
|
||||
{
|
||||
|
||||
@@ -3,59 +3,33 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"albumList2": {
|
||||
"album": [
|
||||
{
|
||||
"id": "al-19",
|
||||
"coverArt": "al-19",
|
||||
"artistId": "ar-6",
|
||||
"artist": "Ten Years After",
|
||||
"id": "al-17",
|
||||
"coverArt": "al-17",
|
||||
"artistId": "ar-5",
|
||||
"artist": "Swell Maps",
|
||||
"title": "",
|
||||
"album": "",
|
||||
"name": "Ten Years After",
|
||||
"songCount": 15,
|
||||
"duration": 3812,
|
||||
"created": "2019-04-30T16:48:30+01:00",
|
||||
"year": 1967
|
||||
"name": "A Trip to Marineville",
|
||||
"songCount": 18,
|
||||
"duration": 3266,
|
||||
"created": "2019-04-30T16:48:48+01:00",
|
||||
"year": 1979
|
||||
},
|
||||
{
|
||||
"id": "al-6",
|
||||
"artistId": "ar-2",
|
||||
"artist": "A Certain Ratio",
|
||||
"id": "al-16",
|
||||
"coverArt": "al-16",
|
||||
"artistId": "ar-5",
|
||||
"artist": "Swell Maps",
|
||||
"title": "",
|
||||
"album": "",
|
||||
"name": "To Each...",
|
||||
"songCount": 9,
|
||||
"duration": 2801,
|
||||
"created": "2019-05-23T15:12:02.921473302+01:00",
|
||||
"year": 1981
|
||||
},
|
||||
{
|
||||
"id": "al-5",
|
||||
"coverArt": "al-5",
|
||||
"artistId": "ar-2",
|
||||
"artist": "A Certain Ratio",
|
||||
"title": "",
|
||||
"album": "",
|
||||
"name": "The Graveyard and the Ballroom",
|
||||
"songCount": 14,
|
||||
"duration": 2738,
|
||||
"created": "2019-06-05T17:46:37.675917974+01:00",
|
||||
"year": 1994
|
||||
},
|
||||
{
|
||||
"id": "al-9",
|
||||
"coverArt": "al-9",
|
||||
"artistId": "ar-3",
|
||||
"artist": "13th Floor Elevators",
|
||||
"title": "",
|
||||
"album": "",
|
||||
"name": "The Psychedelic Sounds of the 13th Floor Elevators",
|
||||
"songCount": 21,
|
||||
"duration": 4222,
|
||||
"created": "2019-06-13T12:57:24.306717554+01:00",
|
||||
"year": 1966
|
||||
"name": "Jane From Occupied Europe",
|
||||
"songCount": 16,
|
||||
"duration": 3040,
|
||||
"created": "2019-04-30T16:48:48+01:00",
|
||||
"year": 1980
|
||||
},
|
||||
{
|
||||
"id": "al-21",
|
||||
@@ -84,30 +58,55 @@
|
||||
"year": 1967
|
||||
},
|
||||
{
|
||||
"id": "al-17",
|
||||
"coverArt": "al-17",
|
||||
"artistId": "ar-5",
|
||||
"artist": "Swell Maps",
|
||||
"id": "al-19",
|
||||
"coverArt": "al-19",
|
||||
"artistId": "ar-6",
|
||||
"artist": "Ten Years After",
|
||||
"title": "",
|
||||
"album": "",
|
||||
"name": "A Trip to Marineville",
|
||||
"songCount": 18,
|
||||
"duration": 3266,
|
||||
"created": "2019-04-30T16:48:48+01:00",
|
||||
"year": 1979
|
||||
"name": "Ten Years After",
|
||||
"songCount": 15,
|
||||
"duration": 3812,
|
||||
"created": "2019-04-30T16:48:30+01:00",
|
||||
"year": 1967
|
||||
},
|
||||
{
|
||||
"id": "al-16",
|
||||
"coverArt": "al-16",
|
||||
"artistId": "ar-5",
|
||||
"artist": "Swell Maps",
|
||||
"id": "al-6",
|
||||
"artistId": "ar-2",
|
||||
"artist": "A Certain Ratio",
|
||||
"title": "",
|
||||
"album": "",
|
||||
"name": "Jane From Occupied Europe",
|
||||
"songCount": 16,
|
||||
"duration": 3040,
|
||||
"created": "2019-04-30T16:48:48+01:00",
|
||||
"year": 1980
|
||||
"name": "To Each...",
|
||||
"songCount": 9,
|
||||
"duration": 2801,
|
||||
"created": "2019-05-23T15:12:02.921473302+01:00",
|
||||
"year": 1981
|
||||
},
|
||||
{
|
||||
"id": "al-9",
|
||||
"coverArt": "al-9",
|
||||
"artistId": "ar-3",
|
||||
"artist": "13th Floor Elevators",
|
||||
"title": "",
|
||||
"album": "",
|
||||
"name": "The Psychedelic Sounds of the 13th Floor Elevators",
|
||||
"songCount": 21,
|
||||
"duration": 4222,
|
||||
"created": "2019-06-13T12:57:24.306717554+01:00",
|
||||
"year": 1966
|
||||
},
|
||||
{
|
||||
"id": "al-13",
|
||||
"coverArt": "al-13",
|
||||
"artistId": "ar-4",
|
||||
"artist": "Anikas",
|
||||
"title": "",
|
||||
"album": "",
|
||||
"name": "Anika",
|
||||
"songCount": 9,
|
||||
"duration": 2169,
|
||||
"created": "2019-05-23T15:12:02.921473302+01:00",
|
||||
"year": 2010
|
||||
},
|
||||
{
|
||||
"id": "al-3",
|
||||
@@ -123,17 +122,17 @@
|
||||
"year": 1983
|
||||
},
|
||||
{
|
||||
"id": "al-13",
|
||||
"coverArt": "al-13",
|
||||
"artistId": "ar-4",
|
||||
"artist": "Anikas",
|
||||
"id": "al-5",
|
||||
"coverArt": "al-5",
|
||||
"artistId": "ar-2",
|
||||
"artist": "A Certain Ratio",
|
||||
"title": "",
|
||||
"album": "",
|
||||
"name": "Anika",
|
||||
"songCount": 9,
|
||||
"duration": 2169,
|
||||
"created": "2019-05-23T15:12:02.921473302+01:00",
|
||||
"year": 2010
|
||||
"name": "The Graveyard and the Ballroom",
|
||||
"songCount": 14,
|
||||
"duration": 2738,
|
||||
"created": "2019-06-05T17:46:37.675917974+01:00",
|
||||
"year": 1994
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"album": {
|
||||
"id": "al-3",
|
||||
"coverArt": "al-3",
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"album": {
|
||||
"id": "al-2",
|
||||
"title": "",
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"artist": {
|
||||
"id": "ar-1",
|
||||
"name": "Jah Wobble, The Edge & Holger Czukay",
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"artist": {
|
||||
"id": "ar-3",
|
||||
"name": "13th Floor Elevators",
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"artist": {
|
||||
"id": "ar-2",
|
||||
"name": "A Certain Ratio",
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"artists": {
|
||||
"ignoredArticles": "",
|
||||
"index": [
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"indexes": {
|
||||
"lastModified": 0,
|
||||
"ignoredArticles": "",
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"directory": {
|
||||
"id": "al-3",
|
||||
"parent": "al-2",
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"directory": {
|
||||
"id": "al-2",
|
||||
"name": "Jah Wobble, The Edge, Holger Czukay",
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"searchResult3": {
|
||||
"artist": [
|
||||
{
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"searchResult3": {
|
||||
"artist": [
|
||||
{
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"searchResult3": {
|
||||
"artist": [
|
||||
{
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"searchResult2": {
|
||||
"artist": [
|
||||
{
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"searchResult2": {
|
||||
"artist": [
|
||||
{
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
"status": "ok",
|
||||
"version": "1.15.0",
|
||||
"type": "gonic",
|
||||
"gonicVersion": "v0.12.3",
|
||||
"searchResult2": {
|
||||
"artist": [
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user