Open dagwieers opened 4 years ago
Ideally what we would like is that the Kodi python interface provides us:
xbmcplugin.setDefaultSortOrder(order=xbmcplugin.SORT_ORDER_NONE)
xbmcplugin.setDefaultSortOrder(order=xbmcplugin.SORT_ORDER_ASCENDING)
xbmcplugin.setDefaultSortOrder(order=xbmcplugin.SORT_ORDER_DESCENDING)
And just as with addSortMethod()
this would force the default behaviour (now it is always ascending), but leaves it up to the user to change it manually. Best of both worlds.
I opened a feature request upstream at: https://forum.kodi.tv/showthread.php?tid=350699
Currently it is not possible to set a default sort order (ascending, descending) of a virtual directory in Kodi.
This would be quite useful as now we have to use the "Default" sort view and order the entries ourselves. Which means we have to add specific information to the title so ordering is still possible by the user.
This needs to be fixed in Kodi.