From c36ad886d62a8e8c4f5fa023460496508b000ca7 Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Thu, 30 Mar 2023 23:53:50 +0800 Subject: [PATCH] set download image timeout --- utils/base/BaseComicEntity.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/base/BaseComicEntity.py b/utils/base/BaseComicEntity.py index c82a956..3362b45 100644 --- a/utils/base/BaseComicEntity.py +++ b/utils/base/BaseComicEntity.py @@ -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