2012-08-28, 01:16
I'm using the same Files.GetDirectory call for music, video and pictures. I would like to sort on multiple fields. If the 'track' field is available I want to sort on that, if the 'episode' field is available I would like to sort on that and in all other cases I want to sort on 'label'. I tried adding a Array in the sort method ("method":["track", "episode", "label"]). But that's not a valid request. Is there any other way to do this?
I could create specific parameters for each media type. But I can only distinguish between movies and episodes after the call. So I don't see any other solution then to re-sort the result client side after analyzing it, at the moment, which I'd rather not do since that's quite expensive on a phone. Is there a way to do this in the call that I'm not seeing?
I could create specific parameters for each media type. But I can only distinguish between movies and episodes after the call. So I don't see any other solution then to re-sort the result client side after analyzing it, at the moment, which I'd rather not do since that's quite expensive on a phone. Is there a way to do this in the call that I'm not seeing?