瀏覽代碼

Reduce batch size

microtasks
tech234a 3 年之前
父節點
當前提交
f19588f7f9
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. +1
    -1
      worker.py

+ 1
- 1
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":


Loading…
取消
儲存