Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Holger Erlands-Petersen on October 11, 2001, 12:38:26 AM

Title: MP3 Jukebox track sorting?
Post by: Holger Erlands-Petersen 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
Title: Re: MP3 Jukebox track sorting?
Post by: enigma01 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
Title: Re: MP3 Jukebox track sorting?
Post by: Holger Erlands-Petersen 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
Title: Re: MP3 Jukebox track sorting?
Post by: Robin Dunn 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
Title: Re: MP3 Jukebox track sorting?
Post by: Holger Erlands-Petersen 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