LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Quick Web Page builder (https://www.linuxquestions.org/questions/slackware-14/quick-web-page-builder-480326/)

linuxhippy 09-04-2006 12:20 PM

Quick Web Page builder
 
I have a lot of mp3 files on 2 cds that I have organized into folders. I want to make a web page for these files so that it's easy to navigate them and then burn them onto the cds. Is there an automated web page building program that would do this in Slackware?

mike160 09-04-2006 12:25 PM

You could just make a local page and link the files to links on the page.

I personally use Nvu.. works great.

www.nvu.com

dive 09-04-2006 12:35 PM

You could write a bash script to do this. Something like:

Code:

#!/bin/bash

cd <your mp3 dir>
for file in `ls`
do
echo "<a href=" $file ">" $file "</a>" >> mp3list.html
done

Of course would need to make the script recursively transverse directories too. 'man ls' will help.

msantinho 09-04-2006 01:31 PM

If you know Perl and you have Apache with mod_perl installed, you can use Apache::MP3 ("Generate streamable directories of MP3 and Ogg Vorbis files").

Links (remove spaces and replace dots)
CPAN: searchDOTcpanDOTorg/~lds/Apache-MP3-4.00/MP3.pm
DEMO: wwwDOTmodperlDOTcom/Songs/

mdarby 09-04-2006 05:34 PM

or
Code:

#!/bin/bash
find /path/to/files -name \*.mp3 -print0 | xargs -0 -i -t echo "<a href="{}">"{}"</a>" >> mp3list.html


tuxdev 09-04-2006 05:46 PM

Or you could let Apache and/or Firefox generate a file listing.


All times are GMT -5. The time now is 01:48 AM.