fix
This commit is contained in:
parent
3e30d374de
commit
c11854067b
@ -39,9 +39,11 @@ class RmComicSpider(scrapy.Spider):
|
||||
new_chapter = oldUtils().new_files(files=comic_item.get_chapters(), folder=cbz_dir)
|
||||
# 清理多余章节
|
||||
oldUtils().clean_old_files(files=comic_item.get_chapters(), folder=cbz_dir, move_folder=move_folder)
|
||||
if len(oldUtils().diff_cbz(cbz_dir=cbz_dir, chapters=new_chapter)) > 0:
|
||||
down_chapter = oldUtils().diff_cbz(cbz_dir=cbz_dir, chapters=new_chapter)
|
||||
if len(down_chapter) > 0:
|
||||
for chapter, link in zip(comic_item.get_chapters(), comic_item.get_chapter_href()):
|
||||
if ComicPath.chinese_convert(ComicPath.fix_file_name(chapter)) in new_chapter:
|
||||
#if ComicPath.chinese_convert(ComicPath.fix_file_name(chapter)) in new_chapter:
|
||||
if ComicPath.chinese_convert(ComicPath.fix_file_name(chapter)) in down_chapter:
|
||||
# 打包导出item数据
|
||||
item = comic_item.load_item(chapter=chapter)
|
||||
# 获取最终存放CBZ的路径
|
||||
|
||||
Loading…
Reference in New Issue
Block a user