Page 1 of 1

Customizing display (How to grab tracknumber and other ID3?)

PostPosted: Tue Jul 18, 2006 10:57 pm
by therequiem
I'm trying to modify parts of Subsonic to change how things display in the main frame and the playlist.
How can I get to the tracknumber portion of the ID3 tag, if at all?

In the playlist file I tried using Song.tracknumber Song.track, but alas it just cried.
Is there any generic way to grab any ID3 variable?

PostPosted: Wed Jul 19, 2006 6:49 am
by sindre_mehus
It's not that easy I'm afraid. :-) The tag parsing logic isn't done in the jsp file, but rather in compiled java code. I don't remember right now whether the third-party library I use for tag parsing supports track number, but I'll check it out.

I am actually right now working with improving the display of the main frame and the playlist. I'm currently displaying the following:

Song title
Album
Artist
Year
Bitrate
VBR
Format
Size

For good measure, I'll throw in track number and duration as well. It'll be posssible to configure which data to show (on a per-user basis).

Sindre

PostPosted: Wed Jul 19, 2006 1:03 pm
by therequiem
Do you have a list of which tags and other properties are available to use?

Along the lines of song.title, song.isplaying, etc etc.

Just might have some fun playing around with it.

PostPosted: Thu Jul 20, 2006 7:55 am
by sindre_mehus
In Subsonic 2.7 only the following is available:

song.title
song.artistAlbumYear
song.path
song.current

-Sindre