Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set default sort order for Kodi virtual directory #539

Open
dagwieers opened this issue Oct 23, 2019 · 2 comments
Open

Set default sort order for Kodi virtual directory #539

dagwieers opened this issue Oct 23, 2019 · 2 comments
Labels
enhancement New feature or request help wanted Extra attention is needed kodi Related to the Kodi media player reported This issue has been reported to upstream project

Comments

@dagwieers
Copy link
Collaborator

dagwieers commented Oct 23, 2019

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 dagwieers added bug Something isn't working vrtmax Related to VRT MAX confirmed The issue has been confirmed by upstream project enhancement New feature or request kodi Related to the Kodi media player and removed bug Something isn't working confirmed The issue has been confirmed by upstream project vrtmax Related to VRT MAX labels Oct 23, 2019
@dagwieers dagwieers changed the title Some HLS videos fail with "415 Unsupported Media Type" Set default sort order for Kodi virtual directory Oct 23, 2019
@dagwieers dagwieers added the help wanted Extra attention is needed label Oct 24, 2019
@dagwieers
Copy link
Collaborator Author

dagwieers commented Jan 5, 2020

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 dagwieers added the reported This issue has been reported to upstream project label Jan 5, 2020
@dagwieers
Copy link
Collaborator Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed kodi Related to the Kodi media player reported This issue has been reported to upstream project
Projects
None yet
Development

No branches or pull requests

1 participant