The MP3 and OGG indexer
If you have lots of MP3s and OGGs, you might also have them organized in
your directory. I for myself keep them all in /mp3 /mp3/Alben and /mp3/Songs.
Since there are lots of people who would like to be able to browse, search and
download music from me, I wrote a 2-component-script which consists of
an indexer who scans all my directories for songs and inserts them into my
database and a frontend in PHP which allows browsing, searching and downloading
of songs and even on-the-fly compression of whole directory-trees.
Sometimes, a screenshot says more than words.
here's what a search-result looks like.
And here's the directory-browsing view:
What you need:
- PostgreSQL Database >= 7.2
- Perl 5.X
- Perl Module Ogg::Vorbis::Header (available here) or Ogg::Vorbis::Header::PurePerl (available here)
- Perl Module MP3::Info
- Perl Module Digest::MD5
- Perl Module DBI
- PHP >= 4.2 with PostgreSQL support
- Download the archive and copy the files to their locations.
If it's not self-explaining, then you might not be the right person
to use this program ;o)
- Copy the musicindexer.cfg either into /etc/ or /usr/local/etc/ - whatever you prefer.
- Make sure you edit it to suit your needs. The comments should explain what each
option does. Use common sense *g*
- Create a pgsql user and database to store all the song-information in
- Run the musicindex.pl script from bin to create your database.
You might want to do this via a cronjob.
Get the latest version here!
Last modified: 04.03.2004 [01:10:32] email@example.com