Python interface to set default sort order of a virtual directory
#1
Currently it is not possible to set the default sort order of a virtual directory. So we are looking for a way to set the default sort order, just like Kodi has an interface to set the default sort method (xbmcplugin.addSortMethod()).

python:

xbmcplugin.setDefaultSortOrder(order=xbmcplugin.SORT_ORDER_NONE)
xbmcplugin.setDefaultSortOrder(order=xbmcplugin.SORT_ORDER_ASCENDING)
xbmcplugin.setDefaultSortOrder(order=xbmcplugin.SORT_ORDER_DESCENDING)

This would only set the default sort order, which is overridden with whatever the user selects manually, just as how it works with the first xbmcplugin.addsortMethod() interface.

More information regarding this request from the add-on issue tracker at: https://github.com/pietje666/plugin.vide...issues/539
Reply

Logout Mark Read Team Forum Stats Members Help
Python interface to set default sort order of a virtual directory0