From c182bbacd47b9ab3ac1d59874a699eb935244029 Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Tue, 20 Feb 2024 22:35:49 +0800 Subject: [PATCH] fix --- Comics/spiders/rm_comic.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Comics/spiders/rm_comic.py b/Comics/spiders/rm_comic.py index 7dd9fed..f6662aa 100644 --- a/Comics/spiders/rm_comic.py +++ b/Comics/spiders/rm_comic.py @@ -29,8 +29,9 @@ class RmComicSpider(scrapy.Spider): comic_item = Conf().comic(self.name, ComicLoader(ComicItem(), response)) for chapter, link in zip(comic_item.get_chapters(), comic_item.get_chapter_href()): item = comic_item.load_item() - cbz_path = ComicPath.get_file_path(item=item, result_type="cbz", convert=True, chapter=chapter) - if not checkUtils().is_error(item) and os.path.exists(cbz_path): + cbz_path = ComicPath().get_file_path(item=item, result_type="cbz", convert=True, chapter=chapter) + #if not checkUtils().is_error(item) and os.path.exists(cbz_path): + if os.path.exists(cbz_path): logging.info(f"漫画 {cbz_path} 已存在, 跳过中...") yield item else: