Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Gary Parker 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
-
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
-
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 :(