Tube Video Download Script

I am looking for a video downloader script that I can run on my server. Any free or paid script can be used as a base script, you can find them for $10-$40 and there are a couple of free ones on sourceforge.

However this script is custom in 2 ways:

1- There are plenty out there that download videos from youtube, I want this to download from adult sites that I can supply to you. I have a list of 140 sites. I do not need all the sites, but the top 5 or 10 would be great.

2- The script would be very easy to use. I enter a URL, the script downloads the file to a directory on my SERVER not PC. You can do this with wget or anything similar we have root access.

That's it. No graphics and no front end needed. This should be a 1 page script to be used only be me. The flow should be as follows: I find a video, a copy-pate link into script, the script downloads the video to a directory on my server.

Final note, the script should be as simple as possible, so if you can do without mysql than that would be great.