diff --git a/common/BaseComicEntity.py b/common/BaseComicEntity.py index 0bc9243..4dcc1b6 100644 --- a/common/BaseComicEntity.py +++ b/common/BaseComicEntity.py @@ -68,7 +68,7 @@ class baseComic: ciUtils.setProgressFail() #不存在完成配置文件 则允许下载 if not ciUtils.isProgressDone(): - cls.comicChapters(href,scramble=True,sleep=random.randint(1,5)) + cls.comicChapters(href,scramble=True,sleep=random.randint(8,20)) cls.count_chapter += 1 #一本漫画下载后等待 #清空文件夹 diff --git a/utils/NetUtils.py b/utils/NetUtils.py index 4e3c2e7..820c3bc 100644 --- a/utils/NetUtils.py +++ b/utils/NetUtils.py @@ -209,7 +209,7 @@ class downloadUtils: print(f"第{repeat}次下载数据中... file_name={file_name}") try: cls.common_download(file_name,image_url,dst_dir,timeout=timeout, - proxy=proxy,proxy_type=proxy_type) + proxy=proxy,proxy_type=proxy_type,type=type) except: print(f"下载重试中 {file_name}={image_url}") cls.down_queue.put([file_name,image_url,dst_dir])