Compare commits
No commits in common. "50a7b283e0c2294bc36d2f47a630ac1fc77efbe3" and "38562aba60e0d445b98c9e3df2c31468034f141d" have entirely different histories.
50a7b283e0
...
38562aba60
6
main.py
6
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:
|
||||
@ -142,9 +142,7 @@ def post_with_retry(url, proxy_name, json_payload=None, data=None, headers=None,
|
||||
data=data,
|
||||
headers=headers,
|
||||
proxies=proxies,
|
||||
timeout=timeout,
|
||||
allow_redirects=True, # 允许重定向
|
||||
verify=False, # 不验证 SSL 证书
|
||||
timeout=timeout
|
||||
)
|
||||
if resp.status_code == 401 and not token_refreshed:
|
||||
if verbose:
|
||||
|
Loading…
x
Reference in New Issue
Block a user