]> gitweb.fluxo.info Git - grab-queue.git/commitdiff
Decrease default limit_concurrent
authorSilvio Rhatto <rhatto@riseup.net>
Wed, 3 Jul 2019 17:44:39 +0000 (14:44 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Wed, 3 Jul 2019 17:44:39 +0000 (14:44 -0300)
grab-queue

index d1bf51311c94adbbd0917fb9c327c9364126c7ad..7cf0c375e37b4419b05a002ea4c8b4c3e83aa33c 100755 (executable)
@@ -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'