fooyin / fooyin

A customisable music player
https://www.fooyin.org
GNU General Public License v3.0
517 stars 16 forks source link

Organizing albums in the library tree by date? #321

Open cloudskater opened 1 day ago

cloudskater commented 1 day ago

First off I need to say that I've tried Strawberry and a lot of the other music players that people recommend for Linux, but this is the only one I've found that has the functionality I need after switching from Windows and MusicBee. Thank you so much for this project.

That said, I've always organized my library by release date and never name. Or, to be more specific, artists were organized alphabetically and their respective albums and singles were organized by release date, down to the day. I found the options for "Grouping" the library tree in preferences, but while I can add my own script (though I'll be the first to admit I'm not sure what point it serves), I can't edit what's already there and make the library tree organize albums by release date instead of title. Given the fact that the option is there and I just can't seem to make it work, I'm sure this is something I'M missing, but if it's meant to not work like that, could we have it as a feature down the line? It's the only issue I've had with the software so far.

Thanks!

ludouzi commented 23 hours ago

Thanks!

I'm guessing this may be the same as https://github.com/fooyin/fooyin/issues/117. If that's the case, adding a new grouping with $if2(%albumartist%,%artist%)||[\[%date%\] ]%album%||[%disc%.]$num(%track%,2). %title% would place the date before the album title so it will sort correctly.

I'm thinking of adding separate options for sorting however, as always sorting alphabetically is not ideal in all cases.

The default grouping entries were made non-editable initially so any changes/fixes are carried over properly. Now that the scripting language is reaching a mature stage, I'll see about making some of the default items in a few settings pages editable.

cloudskater commented 16 hours ago

Thanks!

I'm guessing this may be the same as #117. If that's the case, adding a new grouping with $if2(%albumartist%,%artist%)||[\[%date%\] ]%album%||[%disc%.]$num(%track%,2). %title% would place the date before the album title so it will sort correctly.

I'm thinking of adding separate options for sorting however, as always sorting alphabetically is not ideal in all cases.

The default grouping entries were made non-editable initially so any changes/fixes are carried over properly. Now that the scripting language is reaching a mature stage, I'll see about making some of the default items in a few settings pages editable.

Having those as options would be awesome, yeah. I added that script in Widgets -> Library Tree and weirdly it didn't change anything, even after hitting apply and restarting the program. Just to be sure, I added it to Library -> Sorting too and it didn't change anything, which is weird because looking at that last post in clearly works.