2015-12-23, 12:10
That would be wonderful and was asked a few times Or directly an array of listitems that would allow mixing types.
Currently all remote makers have a big Damocles sword over their heads.
Only way to properly handle playlist is to use JSON batching, because sending tons of query one by one and waiting for result each time to ensure ordering is awfully slow.
But Topfs was very clear about the fact that in the JSON specs batching does not implies query ordering, and that we are just lucky that currently Kodi does handle it like that, and that it can be broken at any time, and we'd have nothing do complain against.
So if there's no proper playlist API for ordering and one day batching no more respect ordering, this will be a very big mess
(It also have impact on lot's of other things but workaround just implies more cpu usage on Kodi, for playlist it's end user experience that would be killed)
Currently all remote makers have a big Damocles sword over their heads.
Only way to properly handle playlist is to use JSON batching, because sending tons of query one by one and waiting for result each time to ensure ordering is awfully slow.
But Topfs was very clear about the fact that in the JSON specs batching does not implies query ordering, and that we are just lucky that currently Kodi does handle it like that, and that it can be broken at any time, and we'd have nothing do complain against.
So if there's no proper playlist API for ordering and one day batching no more respect ordering, this will be a very big mess
(It also have impact on lot's of other things but workaround just implies more cpu usage on Kodi, for playlist it's end user experience that would be killed)