master #3

Merged
ninjajiraiya merged 2 commits from DRMTalks/devine:master into master 2024-03-14 03:25:35 +00:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit 36b070f729 - Show all commits

View File

@ -1,4 +1,5 @@
import math
import os
import time
from concurrent import futures
from concurrent.futures.thread import ThreadPoolExecutor
@ -196,6 +197,9 @@ def requests(
if not isinstance(urls, list):
urls = [urls]
if not max_workers:
max_workers = min(32, (os.cpu_count() or 1) + 4)
urls = [
dict(
save_path=save_path,