Wrong order when getting random smart playlists with Files.GetDirectory
#1
Hi,
if I issue a Files.GetDirectory with the following parameters:

directory = "special://profile/playlists/music/rock.xsp";
properties = (
duration,
artist,
album,
title,
genreid,
thumbnail
);

Where rock.xsp is a smart playlist (all tracks of a certain genre) with random order, 54 items but limit = 50, the result is sorted by artist and album, where in Kodi it is random as expected.
If I remove the limit, it works. If I use a different smart playlist with a different genre (which has 6165 tracks), it works even with limit = 50. I don't know if the number of tracks is the thing what makes it work.

Problem can be seen with the official iOS remote control.

One of the customers of my app says it worked in a previous version of Kodi, but I didn't investigate further in this direction.

Regards,
Markus
Kodi Music Remote for iOS, the remote control for music lovers - http://kodimusicremote.com
Reply
#2
The longstanding bug that meant playlists always got sorted and lost their natural order was fixed by https://github.com/xbmc/xbmc/pull/13059 JSON RPC. That is API version 8.4.1 onwards (v18 of Kodi). You can test it in the current nightly.
Reply
#3
(2017-11-24, 12:27)DaveBlake Wrote: The longstanding bug that meant playlists always got sorted and lost their natural order was fixed by https://github.com/xbmc/xbmc/pull/13059 JSON RPC. That is API version 8.4.1 onwards (v18 of Kodi). You can test it in the current nightly.
 Awesome, and special thanks for posting this info!
Kodi Music Remote for iOS, the remote control for music lovers - http://kodimusicremote.com
Reply

Logout Mark Read Team Forum Stats Members Help
Wrong order when getting random smart playlists with Files.GetDirectory0