This commit is contained in:
caiwx86 2023-04-01 19:58:58 +08:00
parent badb0529c0
commit 263d8c578f

View File

@ -63,10 +63,10 @@ def download_image(timeout=20, proxy_type=None, proxy=None,type="image"):
repeat = 0
while not down_queue.empty() and repeat <= 10:
repeat += 1
if repeat > 1:
ntfy.sendMsg(f"{repeat}次下载数据中...")
data = down_queue.get(False)
(file_name,image_url,dst_dir) = [data[0],data[1],data[2]]
if repeat > 1:
ntfy.sendMsg(f"{repeat}次下载数据中... file_name={file_name}")
try:
common_download(file_name,image_url,dst_dir)
except: