diff --git a/Comics/pipelines.py b/Comics/pipelines.py index ba0bbb7..274b482 100644 --- a/Comics/pipelines.py +++ b/Comics/pipelines.py @@ -173,6 +173,7 @@ class ImgDownloadPipeline(BaseImagesPipeline): if is_next: # logging.info(f"downloading {image_url} --> IMAGE_STORE {image_path}") down_queue.append((image_url, os.path.join(IMAGES_STORE, image_path))) - download_images(down_queue) + if len(down_queue) > 0: + download_images(down_queue) # 存在未下载图像数据则重试 self.download_done(item) \ No newline at end of file