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
smartplaylist: Respect sort terms in queries #1137
Comments
Indeed; it is unfortunate that the plugin discards the sort—I 100% agree that this deserves fixing. |
For a single query it should be relatively easy to preserve the sort , I think we simply need to add it to the call But when using a list of query, which is supported by the plugin, which sort specification should we use ?
|
Intuitively, I would assume that would produce a list made from joining the results of two sorted queries ( |
Here's my attempt at a solution plus the config I tested with:
The resulting playlists contain the items I expected when compared with a handful of manually built playlists. As I said I'm not familiar with the code base so this could be the wrong way to do it but it seems to work :) |
This looks great, @djl! Could you please open a pull request? |
It would be nice to be able sort items in smart playlists, like so:
I'm unfamiliar with the code but it looks like the smartplaylist plugin discards the query
sort
field when building playlists. Would it be possible to keep the custom sort?The text was updated successfully, but these errors were encountered: