fix
This commit is contained in:
parent
badb0529c0
commit
263d8c578f
@ -63,10 +63,10 @@ def download_image(timeout=20, proxy_type=None, proxy=None,type="image"):
|
|||||||
repeat = 0
|
repeat = 0
|
||||||
while not down_queue.empty() and repeat <= 10:
|
while not down_queue.empty() and repeat <= 10:
|
||||||
repeat += 1
|
repeat += 1
|
||||||
if repeat > 1:
|
|
||||||
ntfy.sendMsg(f"第{repeat}次下载数据中...")
|
|
||||||
data = down_queue.get(False)
|
data = down_queue.get(False)
|
||||||
(file_name,image_url,dst_dir) = [data[0],data[1],data[2]]
|
(file_name,image_url,dst_dir) = [data[0],data[1],data[2]]
|
||||||
|
if repeat > 1:
|
||||||
|
ntfy.sendMsg(f"第{repeat}次下载数据中... file_name={file_name}")
|
||||||
try:
|
try:
|
||||||
common_download(file_name,image_url,dst_dir)
|
common_download(file_name,image_url,dst_dir)
|
||||||
except:
|
except:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user