We are no longer offering accounts on this server. Consider https://gitlab.freedesktop.org/ as a place to host projects.

Commit 8f0e724b authored by Jonas Haraldsson's avatar Jonas Haraldsson

download-jamendo.py

add a 1 second delay between new requests to be nice to server
parent 34ee6b21
......@@ -118,7 +118,7 @@ class DownloadJamendo:
continue
while running_threads > MAX_THREADS:
time.sleep(5)
time.sleep(1)
print "Downloading %s to %s" % (trackurl, trackfilepath)
d = Downloader(trackfilepath, trackurl)
d.start()
......@@ -126,6 +126,8 @@ class DownloadJamendo:
if os.path.lexists(tracksymlink):
os.remove(tracksymlink)
os.symlink(trackfile, tracksymlink)
# 1 second delay between every new request to be nice to server
time.sleep(1)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment