add-ons / plugin.video.vrt.nu

Kodi add-on to watch content from VRT MAX
https://www.facebook.com/groups/kodivlaanderen
GNU General Public License v3.0
110 stars 20 forks source link

Set default sort order for Kodi virtual directory #539

Open dagwieers opened 4 years ago

dagwieers commented 4 years ago

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 commented 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.

dagwieers commented 4 years ago

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