integrating the songdatabase into the FTP server?

Posted by: ilDuce

integrating the songdatabase into the FTP server? - 28/12/2002 17:24

I am reaaaallllyyyy missing the function of instead seeing the FIDs on connecting through FTP, to see a "proper" Artist - Title.mp3 name...... I have been thinking of adding my empeg as an alternative or virtual path in my regular FTP server, containing my music. But the problem now is that you see the real filename, wich doesnt make any sense to anybody not knowing what to look for.
But wouldnt it be possible to script the FTP server like they have scripted the http server to be able to display artist and title?
Posted by: pgrzelak

Re: integrating the songdatabase into the FTP server? - 28/12/2002 17:56

Greetings!

I actually have a directory in my html path that is a symlink tree (created with mirrordb). This way, ftp users can get the links with a friendly format (artist - album - track - title.mp3) and it takes very little additional space. The bad news is that it is not automatic.

Posted by: Daria

Re: integrating the songdatabase into the FTP serv - 28/12/2002 18:44

the source to mirrordb never appeared anywhere, did it?
Posted by: ajayrockrock

problems with mirrordb - 29/12/2002 00:40

I tried that mirrordb program and this is the output when I run it from my empeg:

sh-2.03# ./mirrordb .
mirrordb v0.2.1
Copyright 2001 Pepijn Schmitz
Killed

I'm trying to create all the links and whatnot in the current folder. My drives are mounted read/write. Got any ideas as to what's getting "killed"?

thanks,
ajay
Posted by: pgrzelak

Re: problems with mirrordb - 29/12/2002 08:18

Greetings!

The killed is because you ran out of free RAM. Do a swapon /swapfile before running and a swapoff -a after it completes. There are just too many songs for it to store in RAM without having trouble.

As to source availability, I do not know if it was ever officially posted. I requested and received the source directly from the author. I had intended to add some additional functionality (configurability with command line options, etc.), but never got around to it.
Posted by: Daria

Re: problems with mirrordb - 29/12/2002 10:43

Of course, if the author disappeared....

Sigh.
Posted by: Daria

Re: problems with mirrordb - 29/12/2002 11:33

(which isn't to imply that this author has; It's just a general lament about things where source hasn't been released)
Posted by: ajayrockrock

Re: problems with mirrordb - 29/12/2002 17:55

Thanks!

The swapon/off trick worked and all the links were created. I really needed something like this because I just switched to Linux on my desktop and charcoalgrey99's web interface doesn't work in Mozilla/Phoenix.

Can you post the souce somewhere because I'd like to take a look at it and make some small improvements like automatically turning the swap on/off (or at least printing a better error message).

later,
ajay
Posted by: pgrzelak

Re: problems with mirrordb - 29/12/2002 18:19

Greetings!

If the author grants permission for me to publish it, I will post it. I have not heard anything from him at this point. I will send an email out to him as I do not know how active he is on the board.
Posted by: Daria

Re: problems with mirrordb - 29/12/2002 23:22

I PM'd him and he emailed me a copy.
Posted by: Captain_Chaos

Here's the source - 30/12/2002 06:32

I do not know how active he is on the board.

Fairly active, but I had missed this thread... :-)

I don't use mirrordb anymore since Hijack covers my needs more than adequately. Consequently I haven't worked on the source any more either. I'm not terribly proud of it in its current state (especially the dumb memory "management"), but anyway, here it is. I hereby place it in the public domain; do with it what you will...
Posted by: drakino

Re: problems with mirrordb - 30/12/2002 11:58

With Hijack loaded, simply hit this web page:
http://empeg/?FID=101&EXT=.htm

That will provide you a basic HTML output that should work fine in Mozilla, and allow you to keep the Charcoalgrey99 web interface installed as well.
Posted by: ajayrockrock

Re: problems with mirrordb - 31/12/2002 00:12

I *totally* forgot about that basic http interface until I got mirrordb working and saw a little link to it on the bottom of each page. So it's not really necessary for me anymore either... But I still like the idea of being able to ftp into the empeg and downloading whole albums instead of using jemplode.

later,
ajay
Posted by: ilDuce

Re: problems with mirrordb - 21/05/2003 13:04

well... I have beem running mirrordb for a while now... And I am very pleased with being able to ftp in and grab entire playlists of songs...

Now.... Anybody have any idea on how I can mount the empeg on my regular ftpserver running mandrake 8.0 and proftpd?
Is there a way without installing samba of NFS? Or is there any 'easy to install' binarys or something out there for the empeg?

I am not that good in linux so extensive explenations would be appreciated.... thanx!!!!!
Posted by: mlord

Re: problems with mirrordb - 22/05/2003 06:29

I believe that what you want is called the "FTP Filesystem". Look for it in Google and/or SourceForge.net

It's basically a package that you install on your PC (Redhat, whatever), that allows accessing a remote host (Empeg) over FTP, but presenting it on the PC as if it were an NFS mount or similar.

Cheers
Posted by: ilDuce

Re: problems with mirrordb - 22/05/2003 08:32

thanks.... I got the ftp filesystem working now.... and it works like a charm! thanks mlord!

Allthough... I have updated my mirrordb.... And now when I try to fallow a symlink in my ftp client... It complains that it cant find that directory. (When I try to download the link)
Any ideas?
I tried changing my ftp clients "Fallow symlinks recursively" And it doesnt work either way....

edit: It works when I use "GET".... So its definetly a client problem... My client seems to cwd when i try to download a symlink...