Artist Sort Order
#1
Hi,

  thanks for the update.  It is very much appreciated.

Noticed that artist sort order seems a bit screwy.  It shows correctly in Kodi itself

cheers

John
Reply
#2
Hi John,

as this works (with exception of German Umlauts) perfectly fine for me: What exactly is the problem? Can you share screenshots from the App, from Kodi and also share few more details on the Kodi setup you use (version, sort tokens defined)?

Thanks!
Reply
#3
Hi
Thanks for replying. For the like of me I can’t work out how to post a photo in this forum. Can you give me a hint. 😀
Reply
#4
Sure. You choose one of the picture/image hosters (e.g. abload.de), upload the screenshot and then place a link here.
Reply
#5
(2021-02-11, 08:29)Buschel Wrote: Sure. You choose one of the picture/image hosters (e.g. abload.de), upload the screenshot and then place a link here.

https://photos.app.goo.gl/PQ72gswt1aLXMhcUA

https://photos.app.goo.gl/RQAzyiLjtHc1cdDw5

These links should show screen shots of weird sorting

cheers

John
Reply
#6
Thanks, this looks unexpected. The Remote App is just asking the Kodi Server to send back a sorted list. The App itself does not sort. Can you try to clean the library and rebuild it? I would rather suspect the database or an issue with the server.

Btw, which Kodi server version do you use?
Reply
#7
(2021-02-11, 13:42)Buschel Wrote: Thanks, this looks unexpected. The Remote App is just asking the Kodi Server to send back a sorted list. The App itself does not sort. Can you try to clean the library and rebuild it? I would rather suspect the database or an issue with the server.

Btw, which Kodi server version do you use?
Hi,
     ok will delete the musicdb and rebuild it.  As mentioned before Kodi shows everything in the correct order.  I am using Kodi 18.9.  Will get back to you on outcome

cheers

John
Reply
#8
(2021-02-12, 02:08)dawsonjw Wrote:
(2021-02-11, 13:42)Buschel Wrote: Thanks, this looks unexpected. The Remote App is just asking the Kodi Server to send back a sorted list. The App itself does not sort. Can you try to clean the library and rebuild it? I would rather suspect the database or an issue with the server.

Btw, which Kodi server version do you use?
Hi,
     ok will delete the musicdb and rebuild it.  As mentioned before Kodi shows everything in the correct order.  I am using Kodi 18.9.  Will get back to you on outcome

cheers

John
Hi,
         I deleted the database and rebuilt it with the same result.  I have uploaded my database to the following link if this helps

https://www.dropbox.com/s/9q9em0a2jr530n...72.db?dl=0

regards

John
Reply
#9
Wow, interesting. I just copied your database under a fresh installation of Kodi (18.6 Debian version), and I can see similar problems. Obviously the Remote App asks for sorting by "label" instead of "artist". It was like this before as well ... When changing it to request sort by "artist" all looks good at a first glance. I am not sure why the App asked for "label".

@howie-f, are or were there good reasons (maybe for backwards compatibility to older Kodi server versions) to sort by "label" instead of "artist" for the method "AudioLibrary.GetArtists"?
Reply
#10
@Buschel could be this is an oversight from old times. honestly not sure. but it‘s fine if adjusted now for current versions
Reply
#11
(2021-02-14, 18:19)howie-f Wrote: @Buschel could be this is an oversight from old times. honestly not sure. but it‘s fine if adjusted now for current versions
Hmm, is there any chance to figure out from which version on this was supported? In the Wiki I cannot see these details even for JSON-RPC/v8 (which definitely supports sort by "artist", I still use a Kodi 17.6 Server here for Music playback). The code for the methods/parameters to sort the response for "AudioLibrary.GetArtists" was not changed since more than 9 years ... Ideally we can make the change for all versions.
Reply
#12
@Buschel 
you could look at the git blame for https://github.com/xbmc/xbmc/blob/master...thods.json
when this was introduced and which api bump happened there

EDIT... https://github.com/xbmc/xbmc/blob/master...types.json is the correct file to look at
Reply
#13
from a quick glance it looks like the artists-option for List.Sort was introduced with this commit
https://github.com/xbmc/xbmc/commit/5fc1...1f20cc4aab
that is nine years old.
Reply
#14
(2021-02-14, 20:19)howie-f Wrote: @Buschel 
you could look at the git blame for https://github.com/xbmc/xbmc/blob/master...thods.json
when this was introduced and which api bump happened there

EDIT... https://github.com/xbmc/xbmc/blob/master...types.json is the correct file to look at
Thanks, looks like "artist" was supported from the very first version of this file (10 years back). Safe enough, I guess. Smile
Reply
#15
Thanks for fixing it

Cheers

John
Reply



Logout Mark Read Team Forum Stats Members Help
Artist Sort Order0
This forum uses Lukasz Tkacz MyBB addons.