Weblisten MP3Client

If you have an account with http://www.weblisten.com than you migth be interessted in the mp3client I wrote. It automates the download of your MP3 files. It is written in java. Altough it has been tested only under Win 2000, it should also run with linux (any Plattform supporting Java), you will have to write a own starting script, but that should be pretty straightforward. The program has been developed it with Java 1.4.2.
Download the zip File from the sourceforge project page http://sourceforge.net/projects/mp3client and extract it on your machine.
Edit the run.bat file:
	set JAVA_HOME=<YOUR JAVA INSTALL PATH>

	set CLASSPATH=%JAVA_HOME%\lib\rt.jar

	set CLASSPATH=%CLASSPATH%;.\lib\commons-cli-1.0.jar
	set CLASSPATH=%CLASSPATH%;.\lib\commons-codec-1.2.jar
	set CLASSPATH=%CLASSPATH%;.\lib\commons-httpclient-3.0-alpha1.jar
	set CLASSPATH=%CLASSPATH%;.\lib\commons-lnag-2.0.jar
	set CLASSPATH=%CLASSPATH%;.\lib\commons-logging-api.jar
	set CLASSPATH=%CLASSPATH%;.\lib\log4j-1.2.8.jar
	set CLASSPATH=%CLASSPATH%;.\lib\mp3client.jar

	set USER_ID=<YOUR USERID>
	set PWD=<YOUR PASSWORD>
	set LOG_FILE=<YOUR LOGFILE>
	set DEST_DIR=<YOUR PATH TO SAVE THE DOWNLOADS>


	%JAVA_HOME%\bin\java  -Xms64m -Xmx128m net.jatec.weblisten.MP3Client -userId %USER_ID% -pwd %PWD% -logFile %LOG_FILE% -destDir %DEST_DIR%
replace the <...> fields with your values:
<YOUR JAVA INSTALL PATH>
Directory under which you have installed java.
Hint: if you can run in a commandshell
java -version
sucessfully, you can delete the first line and change
%JAVA_HOME%\bin\java
in the last line to
java
<YOUR USERID>
Userid for www.weblistn.com. It is the email address you entered while registering [required]
<YOUR PASSWORD>
password to your www.weblisten.com account [required]
<YOUR LOGFILE>
name of the file where the programm should log. defualt is client.log and the programm does alternate between client.lag and client.log.1 [not required]
<YOUR PATH TO SAVE THE DOWNLOADS>
defines where to save the downloaded mp3 files [required]

Start it by running run.bat.

what does it do ??

why
downloading all the files manually is not an option. if you have an account with weblisten and have selected a few albums to download, you know what I mean. Weblisten offers a free download manager, but this software unfortunately was not taking album name into account when saving the files: all tracks of 2 albums from the same artist would end up in the same folder, and I had the feeling the program loses the session after a while. I couldn't contribute to that software, as I have no knowledge in the language it was written. I have to thank his developer for answering all my emails and giving me the basic idea and inspiration.
So finally I decided to write my own dowload manager in java.

my experiences
I have downloaded several hundred songs sucessfully (700 hundred songs with 10 failures). there are some minor problems: