From f19588f7f9858da4696f800a73a970ba1ba7ef20 Mon Sep 17 00:00:00 2001 From: tech234a <46801700+tech234a@users.noreply.github.com> Date: Tue, 22 Sep 2020 23:12:50 -0400 Subject: [PATCH] Reduce batch size --- worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/worker.py b/worker.py index 76c9e97..c1ee8e3 100644 --- a/worker.py +++ b/worker.py @@ -24,7 +24,7 @@ batchcontent = [] def batchfunc(): ydl = YoutubeDL({"extract_flat": "in_playlist", "simulate": True, "skip_download": True, "quiet": True, "cookiefile": "cookies.txt", "source_address": "0.0.0.0", "call_home": False}) - while jobs.qsize() < 501: + while jobs.qsize() < 251: desit = tracker.request_item_from_tracker() if desit: if desit.split(":", 1)[0] == "video":