Author Topic: A web interface to browse the DMS music collection  (Read 9057 times)

0 Members and 1 Guest are viewing this topic.

Offline amb

  • Getting the hang of things.
  • **
  • Posts: 50
A web interface to browse the DMS music collection
« on: January 06, 2006, 11:43:27 am »
Hi all, I wrote a CGI script that mimics a subset of the PMM user interface.  It uses the *.db files found on the PHTDTA partition as its database.  Check it out:

http://www.amb.org/cgi-bin/myphat.cgi

You can browse by genre, artist or album, and can sort the track list by album, artist, title, genre or track number.  Clicking on a track's artist, album or title will trigger a CDDB search related to the item.

Since I have close to 5000 tracks on my DMS (and growing) it represents a fairly substantial amount of data, so it will take a moment to load.  Dialup users beware!

Please be kind to my web server and have fun!  :D
« Last Edit: January 06, 2006, 11:43:57 am by amb »

Offline twitti

  • Newbie
  • Posts: 3
Re: A web interface to browse the DMS music collec
« Reply #1 on: January 11, 2006, 09:10:06 pm »
Quote
Hi all, I wrote a CGI script that mimics a subset of the PMM user interface.  It uses the *.db files found on the PHTDTA partition as its database.  Check it out:

http://www.amb.org/cgi-bin/myphat.cgi

You can browse by genre, artist or album, and can sort the track list by album, artist, title, genre or track number.  Clicking on a track's artist, album or title will trigger a CDDB search related to the item.

Since I have close to 5000 tracks on my DMS (and growing) it represents a fairly substantial amount of data, so it will take a moment to load.  Dialup users beware!

Please be kind to my web server and have fun!  :D
Hi Amp.
What a great script ! Is it possible to get the script ?
May be your next step for the script is to play songs and to build playlists via web and play them !....
This is what I look for.

Offline Terry_Kennedy

  • Moderator
  • Veteran.
  • *****
  • Posts: 253
  • There and back again
Re: A web interface to browse the DMS music collec
« Reply #2 on: January 11, 2006, 11:03:23 pm »
Quote
Hi all, I wrote a CGI script that mimics a subset of the PMM user interface.  It uses the *.db files found on the PHTDTA partition as its database.  Check it out:

http://www.amb.org/cgi-bin/myphat.cgi
Interesting. I took a somewhat different approach as I had all the music on a computer before I got a PhatBox - so I have a web interface to the raw files (at http://www.tmk.com/media/searcher.html). I generate my DMS playlists from this data. For more info on the system, look at http://www.tmk.com/media.

I'll be adding genre support and per-user selections to this (Amanda and I both populate our PhatBoxes from this server, but with somewhat different selections).

Offline amb

  • Getting the hang of things.
  • **
  • Posts: 50
Re: A web interface to browse the DMS music collec
« Reply #3 on: January 14, 2006, 03:17:40 am »
Quote
What a great script ! Is it possible to get the script ?

Yes, PM me and I'll provide download info.

Quote
May be your next step for the script is to play songs and to build playlists via web and play them !....
This is what I look for.
Should be do-able.  I don't want RMAA's lawyers knocking on my door, so my publically-accessible version won't play music, but maybe I will do a version for my own use that could.

Offline amb

  • Getting the hang of things.
  • **
  • Posts: 50
Re: A web interface to browse the DMS music collec
« Reply #4 on: January 18, 2006, 10:02:23 am »
Hi all, with thanks to sbinger, this CGI script is now up and available for download here:

http://downloads.phathack.com/amb/

The file name is myphat-1.0.tar.gz which is a tarball format bundle of the script, support files and a README file on how to install and use it.  The same bundle is also available there in ZIP format: myphat-1.0.zip  You need a computer running a web server (such as Apache) and Perl interpreter.

I also added my phatsort script (phatsort.sh-1.0.2.tar.gz) in tarball format to the same location for downloads.  This is a shell script for Linux which re-sorts the DMS database and re-generates the index files to arrange the tracks in a more sensible manner when browsing on your radio in "album" mode.

Fron now on this will be the location for future updates of these scripts, and any other phatnoise-related software that I might whip-up.

Have fun.

Offline amb

  • Getting the hang of things.
  • **
  • Posts: 50
Re: A web interface to browse the DMS music collec
« Reply #5 on: January 21, 2006, 04:52:56 am »
Just uploaded a new version "myphat-1.0.1" which contains a small fix for the Safari and Konqueror browsers.

http://downloads.phathack.com/amb/
« Last Edit: January 21, 2006, 04:53:50 am by amb »

Offline amb

  • Getting the hang of things.
  • **
  • Posts: 50
Re: A web interface to browse the DMS music collec
« Reply #6 on: January 27, 2006, 09:51:45 am »
Version 1.1 of myphat.cgi is now out for download:

http://downloads.phathack.com/amb/

This version fixes a problem with track list sorting, and adds a "search" text field.