REST API: albums empty, but folders populated

Need help? Post your questions here.
mbh
Posts: 2
Joined: 21 Aug 2014, 21:08
Has thanked: 1 time
Been thanked: 1 time

REST API: albums empty, but folders populated

Unread post by mbh »

Hi,

I'm the developer of the iOS "Subsonic" client play:Sub.

I have been investigating an issue for one of my users running a Madsonic6 server (6.1.8740.e4c6505.20161001.1002).
On this particular server, a lot of albums appear empty when loaded through the REST API (getAlbum.view)...
Album metadata is present, but no song details. For example:

Code: Select all

{
  "subsonic-response": {
    "status": "ok",
    "album": {
      "artistId": "349",
      "artist": "The Smiths",
      "genre": "Alternative",
      "id": "984",
      "coverArt": "al-984",
      "duration": 2792,
      "songCount": 10,
      "playCount": 0,
      "created": "2016-04-27T19:51:33.097Z",
      "name": "Meat is Murder",
      "year": 1985
    },
    "type": "subsonic",
    "version": "1.14.0"
  }
}
Locating the same album through the folder-based API gives song data:

Code: Select all

{
  "subsonic-response": {
    "status": "ok",
    "directory": {
      "child": [
        {
          "suffix": "m4a",
          "bitRate": 256,
          "title": "The Headmaster Ritual",
…
        }
      ],
      "id": "18485",
      "name": "Meat is Murder",
      "playCount": 0,
      "parent": "447"
    },
    "type": "subsonic",
    "version": "1.14.0"
  }
}
I have tried the above using both the Subsonic API exposed by the server (/rest/), and the Madsonic API (/rest2/) - both give the same results.

Is tere any known issues matching the above, or any things I can make the user try ?
Any and all input appreciated.

Thanks,
Michael.
These users thanked the author mbh for the post:
Madsonic
Rating: 7.69%
daneren2005
Developer
Developer
Posts: 23
Joined: 03 Jan 2014, 00:20
Has thanked: 1 time
Been thanked: 8 times

Re: REST API: albums empty, but folders populated

Unread post by daneren2005 »

I've received several error reports from users of DSub over the last few months as well
These users thanked the author daneren2005 for the post (total 2):
Madsonicmbh
Rating: 15.38%
mbh
Posts: 2
Joined: 21 Aug 2014, 21:08
Has thanked: 1 time
Been thanked: 1 time

Re: REST API: albums empty, but folders populated

Unread post by mbh »

Thanks for the info Daneren2005.

Do you see any pattern in which server version(s) are affected?

Michael
Post Reply