From 50a7b283e0c2294bc36d2f47a630ac1fc77efbe3 Mon Sep 17 00:00:00 2001 From: Franklin-F Date: Wed, 28 May 2025 21:05:27 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=B7=BB=E5=8A=A0=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E5=92=8C=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E4=BB=A5=E6=94=AF=E6=8C=81=E6=96=B0=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E7=9A=84=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/main.py b/main.py index a128248..6310127 100644 --- a/main.py +++ b/main.py @@ -16,12 +16,12 @@ from threading import Lock from concurrent.futures import ThreadPoolExecutor, as_completed from logger import logger - db = DBVidcon() MACHINE_ID = None MAX_WORKERS = 10 executor = ThreadPoolExecutor(max_workers=MAX_WORKERS) + def get_part_ids(part_num: int, take: int, offset: int = 0): part_ids = list(range(offset, offset + take)) if max(part_ids) >= part_num: @@ -143,8 +143,8 @@ def post_with_retry(url, proxy_name, json_payload=None, data=None, headers=None, headers=headers, proxies=proxies, timeout=timeout, - allow_redirects=True, # 允许重定向 - verify=False, # 不验证 SSL 证书 + allow_redirects=True, # 允许重定向 + verify=False, # 不验证 SSL 证书 ) if resp.status_code == 401 and not token_refreshed: if verbose: