diff --git a/Comics/pipelines.py b/Comics/pipelines.py index 3ccb938..560416e 100644 --- a/Comics/pipelines.py +++ b/Comics/pipelines.py @@ -70,15 +70,13 @@ class ImgDownloadPipeline(BaseImagesPipeline): images_item = comic.parse_images() for image_item in images_item: image_url, image_path = [ image_item["image_url"], image_item["image_path"]] - if image_item["image_type"] == "Icon": - image_path = super().get_file_path(item, result_type="icon_cache") - if fu.exists(image_path): return + if image_item["image_type"] == "Icon": image_path = super().get_file_path(item, result_type="icon_cache") # 图像(含加密图像)存在 - if super().image_scramble_exits(item, image_path): - logging.info(f"file exists: IMAGE_STORE {image_path}") - else: - logging.info(f"downloading {image_url} --> IMAGE_STORE {image_path}") - yield scrapy.Request(url=image_url, meta={'path': image_path}) + # if super().image_scramble_exits(item, image_path): + # logging.info(f"file exists: IMAGE_STORE {image_path}") + #else: + logging.info(f"downloading {image_url} --> IMAGE_STORE {image_path}") + yield scrapy.Request(url=image_url, meta={'path': image_path }) # 打包cbz封面 def pack_icon(self, item):