Page 1 of 1

Artist Sort

PostPosted: Thu Oct 27, 2016 6:50 pm
by SenorSmartyPants
I'm attempting to do some work on the Ampache Subsonic API. Ampache currently strips prefixes from artist names, so "The B-52's" becomes "B-52's" in the xml from the api. I altered this to include the prefix in the generated XML like this.

Code: Select all
<subsonic-response xmlns="http://subsonic.org/restapi" type="ampache" version="1.13.0" status="ok">
  <indexes lastModified="1477568636000">
    <index name="B">
      <artist id="100000159" name="The B-52's"/>
      <artist id="100000140" name="Beastie Boys"/>
      <artist id="100000133" name="The Beatles"/>
      <artist id="100000153" name="Beck"/>
    </index>
  </indexes>
</subsonic-response>


But DSub resorts this to put "The B-52's" and "The Beatles" into the T's and not the B's.

Could this be changed so DSub just displays the XML in the order it was passed?

Re: Artist Sort

PostPosted: Thu Oct 27, 2016 9:30 pm
by daneren2005
As part of the indexes metadata Subsonic passes "ignoredArticles" which contains a list of words like "the" which should be ignored for sorting purposes.

Re: Artist Sort

PostPosted: Tue Nov 01, 2016 8:45 pm
by SenorSmartyPants
Thanks.

I'm adding proper ignoreArticles into the xml response from Ampache.