From 3fdc0f8de928c91ee74312ae6155634be68a010c Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Mon, 7 Aug 2023 00:27:16 +0800 Subject: [PATCH] fix --- Comics/pipelines.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Comics/pipelines.py b/Comics/pipelines.py index a5e000d..97860ff 100644 --- a/Comics/pipelines.py +++ b/Comics/pipelines.py @@ -84,4 +84,7 @@ class ImgDownloadPipeline(ImagesPipeline): dts_path= self.get_file_path(item, result_type="cbz"), comic_info_images= comic_info['Pages'], remove=True): self.pack_icon(item) - time.sleep(random.randint(5,60)) \ No newline at end of file + + sleep_time = random.randint(5,60) + print(f'等待{sleep_time}秒后进行下一章节') + time.sleep(int(sleep_time)) \ No newline at end of file