fix
This commit is contained in:
parent
07bdd8dbd9
commit
c182bbacd4
@ -29,8 +29,9 @@ class RmComicSpider(scrapy.Spider):
|
|||||||
comic_item = Conf().comic(self.name, ComicLoader(ComicItem(), response))
|
comic_item = Conf().comic(self.name, ComicLoader(ComicItem(), response))
|
||||||
for chapter, link in zip(comic_item.get_chapters(), comic_item.get_chapter_href()):
|
for chapter, link in zip(comic_item.get_chapters(), comic_item.get_chapter_href()):
|
||||||
item = comic_item.load_item()
|
item = comic_item.load_item()
|
||||||
cbz_path = ComicPath.get_file_path(item=item, result_type="cbz", convert=True, chapter=chapter)
|
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 not checkUtils().is_error(item) and os.path.exists(cbz_path):
|
||||||
|
if os.path.exists(cbz_path):
|
||||||
logging.info(f"漫画 {cbz_path} 已存在, 跳过中...")
|
logging.info(f"漫画 {cbz_path} 已存在, 跳过中...")
|
||||||
yield item
|
yield item
|
||||||
else:
|
else:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user