This commit is contained in:
caiwx86 2023-09-07 00:22:39 +08:00
parent e4ac2cc631
commit ca874dd787
2 changed files with 4 additions and 4 deletions

View File

@ -118,6 +118,6 @@ class ImgDownloadPipeline(ImagesPipeline):
self.update_icon(item)
self.pack_icon(item)
# sleep_time = random.randint(5,30)
# print(f'等待{sleep_time}秒后进行下一章节')
# time.sleep(int(sleep_time))
sleep_time = random.randint(3,15)
print(f'等待{sleep_time}秒后进行下一章节')
time.sleep(int(sleep_time))

View File

@ -36,7 +36,7 @@ COMIC_INFO_XML_STORE = IMAGES_STORE
DOWNLOAD_DELAY = 0
#重试
RETRY_ENABLED = True
RETRY_TIMES = 10 # 想重试几次就写几
RETRY_TIMES = 2 # 想重试几次就写几
# 下面这行可要可不要
# RETRY_HTTP_CODES = [500, 502, 503, 504, 408, 401]
# The download delay setting will honor only one of: