Jump to content

Ids filter


Luke

Recommended Posts

There's a new "Ids" option on the items service, for your enjoyment. See swagger. If you have a set of arbitrary id's, and you want all the items, you can use this to get them all back at once.

 

This will have a number of uses but I designed to make groupings easy for recently added items.

 

Let's say you query for the last 50 items added to the library, and you want to group them under tv Series, or Albums, or Artists, or whatever it is that you wish. You can now get those parent items all at once without having to go and get them individually.

Link to comment
Share on other sites

Wouldn't it make more sense to build this grouping into the back end instead of making every client have to figure out how to do it?

 

There are two big issues with groupings in things like recent lists:

 

1) You have to know how things are supposed to group (e.g. episodes/season/series or song/album/artist). We have this intelligence built into the back end right now in a flexible manner so that we can build grouped indexes.

 

2) When you group items in an incomplete list, the group parent is not actually the parent item itself. You need to construct a temporary "holder" item because the list of children is different for it than it is for the real item.

 

We shouldn't make every client have to deal with these issues (and, thus, probably deal with them differently) if we can build it into the server.

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