Artist Sort

Alternative Android Client for Subsonic

Moderators: daneren2005, moderators

Artist Sort

Postby SenorSmartyPants » Thu Oct 27, 2016 6:50 pm

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?
SenorSmartyPants
 
Posts: 63
Joined: Thu Jan 08, 2015 5:05 pm

Re: Artist Sort

Postby daneren2005 » Thu Oct 27, 2016 9:30 pm

As part of the indexes metadata Subsonic passes "ignoredArticles" which contains a list of words like "the" which should be ignored for sorting purposes.
Developer of DSub for Android
daneren2005
 
Posts: 1709
Joined: Fri Jul 06, 2012 7:52 pm

Re: Artist Sort

Postby SenorSmartyPants » Tue Nov 01, 2016 8:45 pm

Thanks.

I'm adding proper ignoreArticles into the xml response from Ampache.
SenorSmartyPants
 
Posts: 63
Joined: Thu Jan 08, 2015 5:05 pm


Return to DSub for Android

Who is online

Users browsing this forum: No registered users and 77 guests