getArtist API Problem

Need help? Post your questions here.

Moderator: moderators

getArtist API Problem

Postby billbacadill » Sun Jun 02, 2013 3:37 am

I am seeing a weird issue where it appears that the results being returned by the getArtist API call is not returning the latest results.

I am running subsonic 4.8 under Windows XP.

If I use the Subsonic interface locahost:4040, the artist information looks correct.

I have tried rescanning the media folders, cleaning up the database, clearing the browser's cache, restarting the subsonic service, and both Google Chrome and IE to no avail.

Here is the response using the API:
<subsonic-response xmlns="http://subsonic.org/restapi" status="ok" version="1.9.0">
<artist id="4" name="The Beatles" coverArt="ar-4" albumCount="12">
<album id="7" name="A Hard Day's Night" artist="The Beatles" artistId="4" coverArt="al-7" songCount="13" duration="1825" created="2009-02-25T14:15:04"/>
<album id="8" name="Beatles For Sale" artist="The Beatles" artistId="4" coverArt="al-8" songCount="14" duration="2046" created="2009-02-25T13:54:01"/>
<album id="9" name="Help!" artist="The Beatles" artistId="4" coverArt="al-9" songCount="1" duration="131" created="2006-03-11T15:20:58"/>
<album id="10" name="Love" artist="The Beatles" artistId="4" coverArt="al-10" songCount="22" duration="3885" created="2009-02-25T14:03:20"/>
<album id="6" name="One" artist="The Beatles" artistId="4" coverArt="al-6" songCount="1" duration="132" created="2013-05-30T23:36:33"/>
<album id="11" name="Please Please Me" artist="The Beatles" artistId="4" coverArt="al-11" songCount="1" duration="125" created="2006-03-05T14:26:11"/>
<album id="12" name="Revolver" artist="The Beatles" artistId="4" coverArt="al-12" songCount="4" duration="522" created="2006-02-11T19:03:13"/>
<album id="13" name="Sgt. Pepper's Lonely Hearts Club Band" artist="The Beatles" artistId="4" coverArt="al-13" songCount="1" duration="334" created="2013-05-30T23:00:10"/>
<album id="16" name="The Beatles (White Album) (Disc 1)" artist="The Beatles" artistId="4" coverArt="al-16" songCount="1" duration="138" created="2013-04-28T15:20:58"/>
<album id="15" name="The Beatles (White Album) [Disc 1]" artist="The Beatles" artistId="4" coverArt="al-15" songCount="16" duration="2637" created="2009-01-26T15:04:35"/>
<album id="17" name="The Beatles (White Album) [Disc 2]" artist="The Beatles" artistId="4" coverArt="al-17" songCount="13" duration="2828" created="2009-01-26T15:11:20"/>

<album id="14" name="Unknown Album" artist="The Beatles" artistId="4" coverArt="al-14" songCount="5" duration="1026" created="2005-10-12T13:28:24"/>
</artist>
</subsonic-response>

The information for the White Album is wrong.

In Subsonic it shows as:
Please Please Me 1963
A Hard Day's Night 1964
Beatles For Sale 1964
Help! 1965
Revolver 1966
Sgt. Pepper's Lonely Hearts Club... 1967
White Album Disc 1 1968
White Album Disc 2 1968
1 2000
Love 2006
Unknown Album

Which matches the directory tree and is correct.

It's almost like the API is looking at a different location or has data cached.

Any help is appreciated.
billbacadill
 
Posts: 7
Joined: Wed May 29, 2013 2:15 am

Re: getArtist API Problem

Postby billbacadill » Sun Jun 02, 2013 9:32 pm

I figured out what was going on.

The standard Subsonic interface is using the non-ID3 calls (getIndexes, getMusicDirectory, etc.) to get the list of Artists and their albums. This shows things as they are named in the directory tree.

The getArtist uses ID3 Tag information (information stored in the Music files). I used an ID3 Tag editor to modify the contents of the music files to match the directory structure and things look better now.
billbacadill
 
Posts: 7
Joined: Wed May 29, 2013 2:15 am


Return to Help

Who is online

Users browsing this forum: No registered users and 11 guests