plugin.video.vrt.nu icon indicating copy to clipboard operation
plugin.video.vrt.nu copied to clipboard

Set default sort order for Kodi virtual directory

Open dagwieers opened this issue 4 years ago • 2 comments

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.

dagwieers avatar Oct 23 '19 12:10 dagwieers

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.

dagwieers avatar Jan 05 '20 14:01 dagwieers

I opened a feature request upstream at: https://forum.kodi.tv/showthread.php?tid=350699

dagwieers avatar Jan 05 '20 15:01 dagwieers