]> gitweb.fluxo.info Git - grab-queue.git/commitdiff
Adds --monitor-disk and --monitor-memory into wpull args
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 8 Jul 2019 18:32:47 +0000 (15:32 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 8 Jul 2019 18:32:47 +0000 (15:32 -0300)
grab-queue

index e50a688c3bf06e2bc1f04f72acedea7898257e60..febd3086e3cacf5fef5566a3483208b9510067b9 100755 (executable)
@@ -34,7 +34,7 @@ from tqdm import tqdm
 class DownloadMultiple:
     """Downloads multiple files simultaneously with error logging and fancy output"""
 
-    def __init__(self, limit_concurrent = 5, 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 --wpull-args="--monitor-disk --monitor-memory"'):
         # Check for grab-site
         downloader_bin = downloader.split(' ')[0]
         if '/' in downloader_bin and not os.path.exists(downloader_bin):