Author Topic: Another automatic tremulous file downloader  (Read 3523 times)

peoro

  • Posts: 12
  • Turrets: +0/-0
Another automatic tremulous file downloader
« 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:
Code: [Select]
$ ./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
ORCODDIO

[db@]Megabite

  • Posts: 613
  • Turrets: +3/-0
    • http://www.tremulous.info
Another automatic tremulous file downloader
« Reply #1 on: August 16, 2006, 12:00:43 am »
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
url=http://www.tremulous.info][/url]


David

  • Spam Killer
  • *
  • Posts: 3543
  • Turrets: +249/-273
Another automatic tremulous file downloader
« Reply #2 on: August 16, 2006, 12:10:03 am »
Quote from: "[db@
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.
Any maps not in the MG repo?  Email me or come to irc.freenode.net/#mg.
--
My words are mine and mine alone.  I can't speak for anyone else, and there is no one who can speak for me.  If I ever make a post that gives the opinions or positions of other users or groups, then they will be clearly labeled as such.
I'm disappointed that people's past actions have forced me to state what should be obvious.
I am not a dev.  Nothing I say counts for anything.

DIGI_Byte

  • Posts: 508
  • Turrets: +5/-1
Another automatic tremulous file downloader
« Reply #3 on: August 16, 2006, 12:14:42 am »
ouch! the downloader sux but danny is right...


....you both have good points

peoro

  • Posts: 12
  • Turrets: +0/-0
Another automatic tremulous file downloader
« Reply #4 on: August 16, 2006, 12:16:38 am »
Quote from: "[db@
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.
ORCODDIO

[db@]Megabite

  • Posts: 613
  • Turrets: +3/-0
    • http://www.tremulous.info
Another automatic tremulous file downloader
« Reply #5 on: August 16, 2006, 12:19:22 am »
No offense taken, I just wanted to make clear how things are. No damage done, no problem... ;)

Danny
url=http://www.tremulous.info][/url]


vcxzet

  • Guest
Another automatic tremulous file downloader
« Reply #6 on: August 16, 2006, 12:47:24 am »
Bah I can download manually