Tremulous Forum
General => General Discussion => Topic started by: peoro on August 15, 2006, 11:45:31 pm
-
Hi
I've written another automatic tremulous file downloader, 'cause I don't like the existing ones.
It's written in Python, then it's portable (I've tested it only on Linux, but I think that will run even on win32, mac os x and so on), is open source (GPL) and it hasn't a GUI (for now).
It has more options and uses a different (more powerfull) "map list" file, in XML.
It's able to get and install a lots of files (not only maps, but even demos, and whichever kind of stuffs, but, for now, only single files and not directories), to uncompress zip (if wanted file is zipped), to use more mirrors and may or may not be used in an interactive way.
I think that a website like www.tremulous.info would be perfect to host the map list file.
On Posix systems (like Linux) you may execute it from everywhere, on other ones (win32, macosx) you have to put it in the tremulous directory or to specify that using the -d option
Save it, give it execution permises and execute it
An example:$ ./tremmapdownload.py
Found "Gloom - Beta 1": This file already exists
Found "Marauder Demo": You don't have this file
Do you want download this file?
[Y/N] > y
Choose a mirror:
0: blackheartware.com (blackheartware.com mirror) http://blackheartware.com/trem/ng_mara.zip (zip file)
1: tremulous.info (tremulous.info mirror) http://www.tremulous.info/downloads/ng_mara.zip (zip file)
2: A mirror with no name (A mirror with no name mirror) http://70.87.113.84/tremulous/ng_mara.zip (zip file)
3: tremulous.de (tremulous.de mirror) http://www.tremulous.de/downloads/ng_mara.zip (zip file)
> 3
--00:37:10-- http://www.tremulous.de/downloads/ng_mara.zip
=> `/home/peoro/.tremulous/base/demos/ng_mara.zip'
Resolving www.tremulous.de... 213.239.197.114
Connecting to www.tremulous.de|213.239.197.114|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2,411,327 (2.3M) [application/zip]
100%[=================================================================================>] 2,411,327 325.52K/s ETA 00:00
00:37:17 (341.83 KB/s) - `/home/peoro/.tremulous/base/demos/ng_mara.zip' saved [2411327/2411327]
Archive: /home/peoro/.tremulous/base/demos/ng_mara.zip
inflating: /home/peoro/.tremulous/base/demos/ng_mara.dm_69
-
Dear sir,
I cannot remember giving permission to you to use tremulous.info download mirrors for an automated download system. Please take them out and provide your own download locations for the tool.
My mirror partners and I are paying real money to provide the bandwidth for the mirrors. Just downloading there without permission is actually theft.
Thanks, Danny
-
Megabite"]Dear sir,
I cannot remember giving permission to you to use tremulous.info download mirrors for an automated download system. Please take them out and provide your own download locations for the tool.
My mirror partners and I are paying real money to provide the bandwidth for the mirrors. Just downloading there without permission is actually theft.
Thanks, Danny
okay :eek: :O
also why do we need *another* downloader?
your did in more than 300 lines what has been done in 3.
-
ouch! the downloader sux but danny is right...
....you both have good points
-
Megabite"]Dear sir,
I cannot remember giving permission to you to use tremulous.info download mirrors for an automated download system. Please take them out and provide your own download locations for the tool.
My mirror partners and I are paying real money to provide the bandwidth for the mirrors. Just downloading there without permission is actually theft.
Thanks, Danny
I'm really sorry :oops: didn't think that there was such problems :roll:
Anyway that was only an example to show how this script works.
-
No offense taken, I just wanted to make clear how things are. No damage done, no problem... ;)
Danny
-
Bah I can download manually