Page 1 of 1

API problem with getStarred and/or getArtist

PostPosted: Sat Apr 23, 2016 1:14 pm
by Mogmi
I'm trying to get info about artists in my Starred artists. Here's the result when I ask for my Starred elements :

Code: Select all
{
    "subsonic-response": {
    "status": "ok",
    "version": "1.14.0",
    "starred":
{
    "artist":
[
                {
                    "id": "133233",
                    "name": "In Flames",
                    "starred": "2016-04-23T12:45:53.998Z"
                }
            ]
        }
    }}


So far, so good. But then I try to request getArtist with the ID contained in the response :

/rest/getArtist.view?c=app&f=json&v=1.14.0&u=test&t=8b2ba1055804ae5957a1798eee22e6d&s=qdl0ekogugihhiqf7ts3h7u27r&id=133233


And :

Code: Select all
{
    "subsonic-response":
{
    "status": "failed",
    "version": "1.14.0",
    "error":
        {
            "code": ​70,
            "message": "Artist not found."
        }
    }
}


So now I'm a bit sad. I tried to clean my database and stuff, but the result is always the same. The getArtist works fine with random id numbers (like 0, 10, etc...), but not related with the IDs returned by the API.
Any idea what's going on?

Also, same problem with getAlbums.

Subsonic about :
License Subsonic Premium
Version 6.0.beta2 (build d85b52) – March 23, 2016
Server jetty-6.1.x, java 1.8.0_72-internal, Linux (87.2 MB / 126.5 MB)

Re: API problem with getStarred and/or getArtist

PostPosted: Sat Apr 23, 2016 1:28 pm
by acroyear
You didn't specify: did you call getStarred or getStarred2? The IDs for each query type are incompatible with each other. (yeah confusing ;-) )

getStarred is based on the music directory structure, so I think you could call getMusicDirectory on that to get more. My impression is that Subsonic presumes that the 'album' is the music directory the file is in, and the artist is the parent folder of that.

getStarred2 is based on the ID3 metadata, so that is the one that would return IDs that you can pass to getArtist and getAlbum.