A bit of fiddling got it working for me:
Around line 46 change it to look like this:
Thanks, that did it!
Aehm, I am on OS X. I have problems with the escape control-sequences. They are being displayed as text. Any ideas what I could do about it?
Hmm...entering a number (in the files-list) results in "Unknown Command" and the list gets relisted, but no download.
Wouldn't it be best to focus on this script? It could be used on all three platforms, Win, OS X and Linux. Maybe some optional ncurses interface and good to go. Also an option to check whether the files have been downloaded, put every file (and add-ons) into its own directory ,etc.