Jump to content

Sorting tracks on Album in the correct order


Recommended Posts

Posted

Hi,

I'm trying to get the tracks for an album returned in the correct order.  I include "SortBy=IndexNumber", but they don't come back sorted.
Here's the URI I'm using and the order they come back in:
 

http://192.168.1.229:8096/emby/Items?searchterm=abbey%20road&Recursive=true&SortBy=IndexNumber&api_key=3f0c96effd274c33a5f221747297d9af
$ grep IndexNumber abbey.road
                "IndexNumber": 2,
                "IndexNumber": 8,
                "IndexNumber": 4,
                "IndexNumber": 10,
                ...

Any help will be appreciated.

    -Mike Mac 

Posted

Hi, there is no custom sort order when searching, because the sorting is based on search relevance, although it could probably be supported as a secondary sort order I suppose.

Posted

Well they have to be played in the right order, especially side 2 of Abbey Road 😝

I'll have to sort them on my side (sigh ...) 

   -Mike Mac

 

  • Thanks 1
  • 2 weeks later...
Posted

Maybe you should instead search for the series, and then do a normal episode query based on the series?

Posted

@luke, sorry, what keywords/endpoints are used for "search for the series" and "normal episode query"?

Posted

Wait, I think I got it - parentID

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...