Rockbox Technical Forums

Rockbox General => Rockbox General Discussion => Topic started by: candyladder on January 21, 2008, 03:52:44 AM

Title: Sort by album?
Post by: candyladder on January 21, 2008, 03:52:44 AM
Got rockbox with 1st gen nano and a quick question -

1) Is it possible to sort songs in order by album order in database? So say I have Artist X, and I have two albums by Artist X. Is it possible to get the songs sorted by Album1 and then Album2?

Thanks!

Edit--
A few clarifications -

In database can you sort by album?
like when you click on an artist and you have multiple albums underneath the artists' name
and you click on "all tracks" can it be by album order instead of alphabetical
Title: Re: Sort by album?
Post by: GodEater on January 21, 2008, 05:00:25 AM
1) Moved this because you posted it in the wrong place.
and
2) I've merged your two posts into one. Please use the "Modify" button if you wish to add something to your thread and there have been no replies to your original message.
Title: Re: Sort by album?
Post by: shoe on January 21, 2008, 05:32:00 PM
Check out the tagnavi_custom.cfg stuff on the wiki.

You can make a format like this (this one also sorts the albums by year):
    %format "fmt_albumSort" "%04d-%s-%02d-%s" year album tracknum title
and put it in your menu like this:
    "Artist" -> artist -> title = "fmt_albumSort"
So now the tracks are in the right order, but the drawback is, the entire format is displayed for each song.

Its the best solution I have found though.

See http://forums.rockbox.org/index.php?topic=10148.msg77749#msg77749 and if you search you will see other discussion on the forums about this as well.

Title: Re: Sort by album?
Post by: GodEater on January 22, 2008, 03:01:21 AM
It seems this would be more useful if we could modify the behaviour of %strip (or add a new tag entirely) so that instead of taking off a hardcoded number of characters, it would remove a number of tags from the displayed text.
Title: Re: Sort by album?
Post by: shoe on January 22, 2008, 12:57:58 PM
It seems this would be more useful if we could modify the behaviour of %strip (or add a new tag entirely) so that instead of taking off a hardcoded number of characters, it would remove a number of tags from the displayed text.

I think that would be a good feature.  It would also be nice to change the behavior of INSERT in the database, so that it inserts the tracks in order of the filter.  As expressed by Llorean in the link above:

In my opinion, if you insert the "Genre" you shouldn't get "Genre->All tracks" but rather a progression through the rest of the filters.
So if you've got Genre->Artist->Album->Track, and you click insert on say, the Artist, you should get songs, in track order, one album at a time.
In my opinion it should basically "walk" the filter, inserting songs in order. Probably a slower process than using the all tracks list, but it would allow a large amount of flexibility.
Title: Re: Sort by album?
Post by: brotherpug on January 22, 2008, 06:13:06 PM
I quite like the way that Amarok (a Linux app) does it, it has three levels that you can specify eg... Genre, Artist, Album; Genre, Composer, Artist. Though even this isn't ideal because I'd like the rock music to be in the order Genre, Artist, Album while the classical music is in the order Genre, Composer, Album (I've got it so that classical works are named as albums: so that the above might go Classical, Beethoven, Fifth Symphony).
I guess you'll need so many options to please everyone that in the end it wouldn't be worth the work.
Title: Re: Sort by album?
Post by: GodEater on January 23, 2008, 02:56:43 AM
I guess you'll need so many options to please everyone that in the end it wouldn't be worth the work.

The whole point of the tagnavi file is so that you can define it however you like, and please everyone. The one we ship is obviously the "default", and therefore isn't likely to meet everyone's needs - but since you can create your tagnavi_custom.cfg with whatever options you like in it - you should be able to achieve what you want.

The issue under discussion here is how the results of the queries defined in the tagnavi get sorted when they're displayed - not what can be displayed in the first place.