Jump to content

SortBy Options For /Users/{UserId}/Items


hieroglyph

Recommended Posts

hieroglyph

I am trying to query for watched episodes and have the results returned based on series first, then season, followed by episode.

  • Series 1, Season 1, Episode 1
  • Series 1, Season 1, Episode 2
  • Series 1, Season 1, Episode 3
  • Series 1, Season 2, Episode 1
  • Series 1, Season 2, Episode 2
  • Series 1, Season 2, Episode 3
  • Series 2, Season 1, Episode 1
  • Series 2, Season 1, Episode 2
  • Series 2, Season 1, Episode 3
  • Series 2, Season 2, Episode 1
  • Series 2, Season 2, Episode 2
  • Series 2, Season 2, Episode 3
  • etc...

Are these all of the SortBy options for the Items Service?

727135547_Screenshot2022-12-05at21-18-29SwaggerUI.thumb.png.cb69cf63046cd1bc101f12b4057fa192.png

 

Or are the keys returned also valid SortBy options?

&SortBy=SeriesName,ParentIndexNumber,IndexNumber,Name

 

http://192.168.99.100:8096/emby/Users/6d9e789123db4e4aff4014abc85203a1/Items?ParentID=a82beae9c62c9b3bb012d5ff85e3cba4&IncludeItemTypes=Episode&StartIndex=0&Limit=100&IsPlayed=True&Recursive=True&SortBy=SeriesName,ParentIndexNumber,IndexNumber,Name&SortOrder=Ascending&EnableImages=False&EnableUserData=True&api_key=2a876b15231021aa2746109d05ff2931
Link to comment
Share on other sites

Hi, no you can't just use any field for sorting, it has to be one that is specifically supported as sortable. That list looks mostly complete, although I'm sure it's a little out of date. It might be missing one or two new ones like Filename. I'll have to compare it to the web app UI and get it updated.

Link to comment
Share on other sites

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...