fix
This commit is contained in:
parent
9ba828911e
commit
92c5bc19b0
@ -70,15 +70,13 @@ class ImgDownloadPipeline(BaseImagesPipeline):
|
|||||||
images_item = comic.parse_images()
|
images_item = comic.parse_images()
|
||||||
for image_item in images_item:
|
for image_item in images_item:
|
||||||
image_url, image_path = [ image_item["image_url"], image_item["image_path"]]
|
image_url, image_path = [ image_item["image_url"], image_item["image_path"]]
|
||||||
if image_item["image_type"] == "Icon":
|
if image_item["image_type"] == "Icon": image_path = super().get_file_path(item, result_type="icon_cache")
|
||||||
image_path = super().get_file_path(item, result_type="icon_cache")
|
|
||||||
if fu.exists(image_path): return
|
|
||||||
# 图像(含加密图像)存在
|
# 图像(含加密图像)存在
|
||||||
if super().image_scramble_exits(item, image_path):
|
# if super().image_scramble_exits(item, image_path):
|
||||||
logging.info(f"file exists: IMAGE_STORE {image_path}")
|
# logging.info(f"file exists: IMAGE_STORE {image_path}")
|
||||||
else:
|
#else:
|
||||||
logging.info(f"downloading {image_url} --> IMAGE_STORE {image_path}")
|
logging.info(f"downloading {image_url} --> IMAGE_STORE {image_path}")
|
||||||
yield scrapy.Request(url=image_url, meta={'path': image_path})
|
yield scrapy.Request(url=image_url, meta={'path': image_path })
|
||||||
|
|
||||||
# 打包cbz封面
|
# 打包cbz封面
|
||||||
def pack_icon(self, item):
|
def pack_icon(self, item):
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user