Koozali.org: home of the SME Server

MP3 Jukebox track sorting?

Holger Erlands-Petersen

MP3 Jukebox track sorting?
« on: October 11, 2001, 12:38:26 AM »
Hi,

Does anyone have a clue to how to change the sorting of song titles
displayed in the web browser?

As it is now, the songs are sorted alphabetically by name. I would like
to have them sorted by track number.

/Holger

enigma01

Re: MP3 Jukebox track sorting?
« Reply #1 on: October 15, 2001, 03:03:25 PM »
have you tried renaming the songs and having them in the format..

01-somename.mp3
02-songname.mp3

etc

Holger Erlands-Petersen

Re: MP3 Jukebox track sorting?
« Reply #2 on: October 15, 2001, 07:24:23 PM »
Yes, I use this naming convention:

01 - Aerosmith - Walk On Water.mp3

But still the songs show up in the browser sorted by the MP3 'Track Title' Tag.

/Holger

Robin Dunn

Re: MP3 Jukebox track sorting?
« Reply #3 on: October 15, 2001, 11:04:37 PM »
Look in http.conf, there are parameters you can set for the Apache::MP3 package that allow you to set what the sort fields are, and also what fields are displayed.

Make a custom template from a copy of /etc/e-smith/templates/etc/httpd/conf/httpd.conf  and edit it so it outputs the flags you want.  See the docs in /usr/lib/perl5/site_perl/5.6.0/Apache/MP3/Sorted.pm for the details of what parameters and values are available.

--Robin

Holger Erlands-Petersen

Re: MP3 Jukebox track sorting?
« Reply #4 on: October 16, 2001, 05:44:50 AM »
Hi Robin,

OK - I think I have figured it out know.

I've created a new custom-template and changed the SortField
parameter. I then expanded this template and everything seems to work
fine (after a reboot).

Thank You for pointing me in the right direction!

/Holger