set download image timeout

This commit is contained in:
caiwx86 2023-03-30 23:53:50 +08:00
parent 4f37f8b68a
commit c36ad886d6

View File

@ -128,7 +128,7 @@ class baseComic:
repeat = 1
while is_next and repeat <= 10 and not CBZUtils.updateOldCBZ(files_name):
ntfy.sendMsg(f"{book_name} {chapter_name} 下载中")
download_images(list_img,ci.getDirComicChapter(), files_name=files_name,concurrency=None,timeout=20)
download_images(list_img,ci.getDirComicChapter(), files_name=files_name,concurrency=None,timeout=10)
equ_next = len(",".join(os.listdir(ci.getDirComicChapter())).split(".jpg"))-1 == len(list_img)
if not equ_next:
sleep_time = 3+int(repeat)*2