Hi guys !
Sorry if my question is not relevant, it’s my first time coding in Python
I forked a plugin and updated it, a Kodi addon to stream music from a Subsonic Server, (plugin.audio.subsonic).
The original plugin was broken, so I… unbroke it, but also rewrite a lot of stuff and add features including marking items as favorites(star) and downloading tracks / albums.
That was kind of fun.
But I have issues with sorting virtual folders…
Actually, I colorize list items labels if they are “starred” (marked as favorite); so it’s easy to see if an item is favorited or not.
When sorting is disabled, it works fine.
But when I add sort methods, it all goes wrong : I can’t see my “default” (colorized) labels anymore.
I understand that sorting by title,artist,album,date… changes the look of the list items, but I just would like to have a sort option that would display my default labels.
I did try with
xbmcplugin.SORT_METHOD_NONE,
xbmcplugin.SORT_METHOD_LABEL,
xbmcplugin.SORT_METHOD_UNSORTED
But:
* not any of my sorting options (using that code) do display my default labels
* I do not understand the difference between those methods.
* I think SORT_METHOD_NONE displays “Date” for the sort by parameter, which is a bug, is it ?
Anyway, could someone explain me if this is a bug or if there is a way to sort stuff by labels correctly ?
Thanks