-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Ordering albums in artist tab #147
Comments
I put some more thoughts in this issue and I may have a better idea: For example, with a library structured like this :
rmpc will display a table looking like this:
But adding support for library formatting (and another property) :
would render:
Column formatting would look nice as added bonus. And maybe : |
Hello! As you have found out, there is no such thing as "album date" in mpd, so we have to approximate it from the songs inside the album, but a single album can have songs with different dates. There are a few strategies that we can take to tackle this.
But no matter the path, we will still have to fetch all the songs for the artist, which is fine in the artists/album artists tab, but what about the Album tab? We would have to fetch the whole library I think. The formats idea is interesting, there already is I am unsure on how to tackle all this at the moment, but I agree that it makes sense to have them sorted by date or other means. |
The "fetching all songs" seems very inefficient indeed. I didn't want to have artists and track number in my album but then playlists look a bit weird with only the track name... I'm going to try what I can do on my side, as an excuse to learn a bit more Rust, I will let you know if I think i have something nice. |
Yeah, I initially planned to have different format for songs in playlists but did not get around to it. The no styling was done intentionally, but I am not too stuck on it. |
master...FLchs:rmpc:feat/browser-regexes Probably ugly code but with album names prefixed with release date it works enough for my own usage... I'm really not good enough at Rust to try anything more complicated sorry. |
Great to hear that you found solution that works for you for now! I want to solve this properly but am unsure of how just yet, so I am gonna leave this issue open for now if you dont mind. |
Sorry I took ages to resolve this. I have decided to to only show album dates in the artists panes, which solves the issue of having to fetch the whole library. I have also added new config values. You can choose to hide or show the album date as well as whether to sort them by name or date. One edge case is when album contains songs with different dates: Definitely had to make some trade offs there, but hopefully it fits your use case. Dont hesitate to reopen this if you have any issues with this! |
Description
Hello it's me again,
In artists and album artist panes, albums are ordered alphabetically.
Ordering them by release date makes more sense to me, I know I could add the release date to the folder name but I think it clutters the view.
Proposed solution
Afaik MPD protocol doesn't allow to get an ordered or "rich" list from the list command so it is not as trivial as it seems.
I tried to make a proof of concept of a solution but it makes browsing the library quite slower as I have to get all the songs of an artist and then process it rather than getting a list of album names from MPD...
I think ncmpcpp add some kind of delay before rendering the album column as a workaround.
So here is my POC, be aware I'm by no way familiar with Rust so I'm 100% sure that if you find this request pertinent you will find a more elegant way.
master...FLchs:rmpc:feat/order-album-by-date
The text was updated successfully, but these errors were encountered: