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

Sort File Browser Listing #163

Open
NullDev42 opened this issue Jul 5, 2024 · 4 comments
Open

Sort File Browser Listing #163

NullDev42 opened this issue Jul 5, 2024 · 4 comments

Comments

@NullDev42
Copy link

I did some searching and I didn't find where this has been asked before, but I assume that it probably has. Is there a way to sort the File Browser listing alphabetically? Is the current sort order file system, mpd, or RompR dependent?

Thank you again for an awesome front-end client!

@fatg3erman
Copy link
Owner

The current sort order should be the order mpd returns them to me. How mpd decides what that is though is anybody's guess. If you're having a specific issue you can try looking at what order mpd sends them:

telnet your-mpd-host port
lsinfo /

lsinfo "directory name"
lsinfo "directory name/subdirectory name"
etc

If the order they come back in from that is different from the order in RompR then there is a bug.

@NullDev42
Copy link
Author

NullDev42 commented Jul 6, 2024

I should have mentioned on the outset that this clearly isn't a bug but rather a feature request.

From my poking around with the mpd API, it looks like it just spews a file list that's sorted by whatever order the files were originally entered into the database which isn't overly handy.

I did see the "find {FILTER} [sort {TYPE}] [window {START:END}]" command which I think might work. However, I wasn't able to get it to not choke on my FILTER syntax. I thought something like "file == *" would select everything in the database which could then be sorted, but clearly it's looking for something else in the filter field as I only get "{find} Incorrect number of filter arguments" for a response.

@fatg3erman
Copy link
Owner

Yeah, not much I can do about that. It's very strange, mine does return them in alphabetical order. TBH the file browser doesn't get a lot of attention, I don't really see the point of it.

@NullDev42
Copy link
Author

I must be a rarity then which I guess does not work in my favor. I find the File Browser lets me have more control over how the music is grouped together. The last piece in the puzzle is getting it sorted.

I started a thread on the MPD list requesting help with the filter/sort syntax as wildcards are not clearly explained in the API docs. I'm hoping it's a simple matter of swapping out the "listall" command with something else in RompR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants