Page 1 of 1

sort albums by year

PostPosted: Sun May 27, 2012 8:04 pm
by prophead
I understand this can be done if I prepend my album title with the year and let that sort, but I want clean album names. All my tracks are tagged with year in ID3. My question is this, is it possible to sort the album list by id3 year tag just by modifing the jsp or do I need to go deeper?

Re: sort albums by year

PostPosted: Sun May 27, 2012 8:39 pm
by hakko
The default Subsonic 4.6 behavior is to pass a list of MusicFile to main.jsp when you browse an artist. The MusicFiles represents either a single song or a directory containing songs (everything that's found directly below the path for the artist you clicked). The year from the id3 tag is only available for MusicFiles representing single songs, it's not aggregated into a MusicFile representing a directory. So if you have the directory structure Artist/Album/Songs, years will only be available when you get down to Songs, not in Albums.

I've modded MainController.java and main.jsp to get an artist view that looks like this:
http://dilerium.se/musiccabinet/#artistRadio

if that's useful for you, you can have a look at https://github.com/hakko/subsonic to see how it's done. The mod has a thread here: viewtopic.php?f=11&t=10587

Re: sort albums by year

PostPosted: Fri Jun 01, 2012 8:17 am
by MadEvil
Hi,
you can also this mod, i try to scan/order/truncate year from albumID or Folder

Link Thread --> viewtopic.php?f=8&t=9187

year.PNG


best regards