From 0a51418a4287eada294a96af0859ba5fa584e056 Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Wed, 5 Apr 2023 23:27:58 +0800 Subject: [PATCH] fix --- utils/NetUtils.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/utils/NetUtils.py b/utils/NetUtils.py index e7ed3ad..71527f3 100644 --- a/utils/NetUtils.py +++ b/utils/NetUtils.py @@ -206,7 +206,7 @@ class downloadUtils: data = cls.down_queue.get(False) (file_name,image_url,dst_dir) = [data[0],data[1],data[2]] cls.common_download(file_name,image_url,dst_dir,timeout=timeout, - proxy=proxy,proxy_type=proxy_type,type=type) + proxy=proxy,proxy_type=proxy_type) repeat += 1 @@ -249,7 +249,8 @@ class downloadUtils: path_comic_icon = ComicPath.getPathConfComicIcon(suffix=icon_suffix) if not ciUtils.equIcon() and fu.exists(path_comic_icon): os.remove(path_comic_icon) while fu.notExists(path_comic_icon): - cls.download_images([icon_url],ComicPath.getDirConfComic(),files_name=[ComicPath.COMIC_ICON_NAME+"."+icon_suffix],timeout=30) + cls.down_queue.put([ComicPath.COMIC_ICON_NAME+"."+icon_suffix,icon_url,ComicPath.getDirConfComic()]) + cls.download_image() save_path = ComicPath.getPathCBZComicChapterIcon(icon_suffix) if is_new: #历史版本ICON