Wrong order when getting random smart playlists with Files.GetDirectory

  Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
markusloffler Offline
Junior Member
Posts: 43
Joined: Nov 2013
Reputation: 0
Post: #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
find quote