sort albums by year

Third-party modifications and add-ons, Apps and Clients

Moderator: moderators

sort albums by year

Postby prophead » Sun May 27, 2012 8:04 pm

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?
prophead
 
Posts: 4
Joined: Tue Aug 23, 2011 3:01 am

Re: sort albums by year

Postby hakko » Sun May 27, 2012 8:39 pm

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
Last edited by hakko on Sun Dec 02, 2012 7:11 pm, edited 1 time in total.
MusicCabinet developer
hakko
 
Posts: 1416
Joined: Tue Apr 17, 2012 7:05 pm
Location: Sweden

Re: sort albums by year

Postby MadEvil » Fri Jun 01, 2012 8:17 am

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
Madsonic Developer
User avatar
MadEvil
 
Posts: 354
Joined: Wed Nov 09, 2011 8:35 pm
Location: Vienna


Return to Mods, Apps and Clients

Who is online

Users browsing this forum: No registered users and 9 guests