aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2019-07-03 14:44:39 -0300
committerSilvio Rhatto <rhatto@riseup.net>2019-07-03 14:44:39 -0300
commit297ece41feb8aa54d8d5fb47623418d9421291e7 (patch)
treef7107342b95891c2f56e5056cd343e8eb8718c40
parentd312f535406ad271ae0e78889710c9048f6ec5e8 (diff)
downloadgrab-queue-297ece41feb8aa54d8d5fb47623418d9421291e7.tar.gz
grab-queue-297ece41feb8aa54d8d5fb47623418d9421291e7.tar.bz2
Decrease default limit_concurrent
-rwxr-xr-xgrab-queue4
1 files changed, 2 insertions, 2 deletions
diff --git a/grab-queue b/grab-queue
index d1bf513..7cf0c37 100755
--- a/grab-queue
+++ b/grab-queue
@@ -33,7 +33,7 @@ from tqdm import tqdm
class DownloadMultiple:
"""Downloads multiple files simultaneously with error logging and fancy output"""
- def __init__(self, limit_concurrent = 20, progress = True, debug = False, downloader = 'grab-site --no-offsite-links'):
+ def __init__(self, limit_concurrent = 5, progress = True, debug = False, downloader = 'grab-site --no-offsite-links'):
# Check for grab-site
downloader_bin = downloader.split(' ')[0]
if '/' in downloader_bin and not os.path.exists(downloader_bin):
@@ -188,7 +188,7 @@ class GrabQueue:
if args.limit_concurrent != None:
self.limit_concurrent = args.limit_concurrent
else:
- self.limit_concurrent = '20'
+ self.limit_concurrent = '5'
if args.downloader == None:
#args.downloader = '/usr/bin/wget'