From 7777b7479acd7a35b020ceb36990ccb63544fa9a Mon Sep 17 00:00:00 2001 From: caiwx86 Date: Sat, 11 Jan 2025 19:13:52 +0800 Subject: [PATCH] fix --- Comics/spiders/rm_comic.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/Comics/spiders/rm_comic.py b/Comics/spiders/rm_comic.py index 16eff58..d812894 100644 --- a/Comics/spiders/rm_comic.py +++ b/Comics/spiders/rm_comic.py @@ -46,10 +46,11 @@ class RmComicSpider(scrapy.Spider): # 获取最终存放CBZ的路径 cbz_path = ComicPath(item=item).PATH_CBZ() # 校验繁体和简体中文CBZ路径是否存在 - if cbz_path !=None and os.path.exists(cbz_path): - logging.info(f"漫画 {cbz_path} 已存在, 跳过中...") - yield item - else: + # if cbz_path !=None and os.path.exists(cbz_path): + # logging.info(f"漫画 {cbz_path} 已存在, 跳过中...") + # yield item + #else: + if cbz_path !=None and not os.path.exists(cbz_path): # 开始访问章节链接并跳转到self.parse_chapter yield scrapy.Request(self.main_url+link, meta={'item': item}, callback=self.parse_chapter)