Koozali.org: home of the SME Server

Track Listing Order in MP3 Blade

Gary Parker

Track Listing Order in MP3 Blade
« on: November 26, 2001, 02:41:11 PM »
Can anyone tell me how to change the order by which titles are listed in the MP3 blade so that they are ordered by track number or filename, please? At present it seems to be extracting the track name from the id3 tag and then ordering them alphabetically. Most of my directories contain whole albums and it's damned annoying to have the tracks out of sequence...

The files all have the track number stored in the id3 tag and are also named " - .mp3" so ordering by track number or file name would do the trick.

Gary

Gary Parker

Re: Track Listing Order in MP3 Blade
« Reply #1 on: November 30, 2001, 03:42:53 PM »
Ummkay....managed to figure this one out for myself and thought I might as well post a follow-up in case anyone else wanted to do it in the future.

Bring up /etc/e-smith/templates/etc/httpd/conf/httpd.conf/95ApacheMP310Handler in vi and on change line 33 to look like this:-

$OUT .= "    PerlSetVar SortField    track,title\n";

This will now sort the directories by track number first, then track title. Altogether much better for directories with albums in them.

Do a quick '/sbin/e-smith/signal-event console-save' to rebuild your config files and you should be laughing...

Gary

Thor Anthrax

Re: Track Listing Order in MP3 Blade
« Reply #2 on: December 02, 2001, 06:21:30 AM »
Why not change it to

$OUT .= " PerlSetVar SortField filename\n";

I found some documentation: http://search.cpan.org/doc/LDS/Apache-MP3-2.20/MP3.pm

Unfortunately, the option "$OUT .= " PerlSetVar AllowStream no\n";" give bad result :(