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

Need help? Post your questions here.

Moderator: moderators

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

Postby therequiem » Tue Jul 18, 2006 10:57 pm

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?
therequiem
 
Posts: 8
Joined: Mon Jul 10, 2006 5:53 pm
Location: Toronto, Ontario, Canada

Postby sindre_mehus » Wed Jul 19, 2006 6:49 am

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
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway

Postby therequiem » Wed Jul 19, 2006 1:03 pm

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.
therequiem
 
Posts: 8
Joined: Mon Jul 10, 2006 5:53 pm
Location: Toronto, Ontario, Canada

Postby sindre_mehus » Thu Jul 20, 2006 7:55 am

In Subsonic 2.7 only the following is available:

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

-Sindre
User avatar
sindre_mehus
 
Posts: 1955
Joined: Tue Nov 29, 2005 6:19 pm
Location: Oslo, Norway


Return to Help

Who is online

Users browsing this forum: No registered users and 16 guests