Luke 37259 Posted March 16, 2013 Share Posted March 16, 2013 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 More sharing options...
ebr 14959 Posted March 16, 2013 Share Posted March 16, 2013 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now