API problem with getStarred and/or getArtist

Need help? Post your questions here.

Moderator: moderators

API problem with getStarred and/or getArtist

Postby Mogmi » Sat Apr 23, 2016 1:14 pm

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)
Mogmi
 
Posts: 3
Joined: Wed Oct 30, 2013 9:24 am

Re: API problem with getStarred and/or getArtist

Postby acroyear » Sat Apr 23, 2016 1:28 pm

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.
--
Joe Shelby
http://subfiresuite.com/
http://subfireplayer.net/
User avatar
acroyear
 
Posts: 779
Joined: Wed Mar 27, 2013 8:05 pm
Location: Northern, VA


Return to Help

Who is online

Users browsing this forum: No registered users and 14 guests