fix
This commit is contained in:
parent
b7afc78b30
commit
4ca07366e6
@ -114,15 +114,16 @@ class ImgDownloadPipeline(BaseImagesPipeline):
|
||||
|
||||
|
||||
def item_completed(self, results, item, info):
|
||||
# return item
|
||||
# 打包
|
||||
"""图片下载完成,开始CBZ打包
|
||||
|
||||
Args:
|
||||
results (_type_): 当前下载完成的图片,已下载的已忽略
|
||||
item (_type_): Comic item数据
|
||||
info (_type_): 信息
|
||||
"""
|
||||
cbz_path = super().get_file_path(item, result_type="cbz")
|
||||
#success_data = []
|
||||
#for result in results:
|
||||
# if result[0]: success_data.append(result[1])
|
||||
# chapter_dir = ComicPath(item=item).file_path(result_type=ComicPath().MAPPING_IMAGES_DIR)
|
||||
# images_file = oldUtils().old_images(folder=chapter_dir)
|
||||
# len(success_data) != len(ComicLoader(item=item).get_image_urls()): return
|
||||
# if len(images_file) != len(ComicLoader(item=item).get_image_urls()): return
|
||||
if fu.exists(cbz_path):
|
||||
#self.update_icon(item)
|
||||
|
||||
@ -596,7 +596,7 @@ class checkUtils:
|
||||
error_comic.append({ "name" : ComicPath.new_file_name(item['name']),
|
||||
"chapter" : ComicPath.new_file_name(item['chapter']),
|
||||
"date" : ComicPath().getYearMonthDay()})
|
||||
fileUtils.save_file(file, json.dumps(error_comic))
|
||||
fileUtils().save_file(file, json.dumps(error_comic))
|
||||
|
||||
def is_error(self, item):
|
||||
try:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user