Update to 0.5.2

This commit is contained in:
Will Miao
2025-01-29 20:43:45 +08:00
parent a3235e4b3b
commit 47329f92b6
2 changed files with 3 additions and 3 deletions

View File

@@ -255,8 +255,8 @@ class LorasEndpoint:
local_metadata['base_model'] = civitai_metadata.get('baseModel')
# 4. 下载预览图
# Check if existing preview is valid
if not local_metadata.get('preview_url') or not os.path.join(self.loras_root, local_metadata['preview_url'].replace('/', os.sep)):
# Check if existing preview is valid and the file exists
if not local_metadata.get('preview_url') or not os.path.exists(os.path.join(self.loras_root, local_metadata['preview_url'].replace('/', os.sep))):
first_preview = next((img for img in civitai_metadata.get('images', [])), None)
if first_preview:

View File

@@ -1,7 +1,7 @@
[project]
name = "comfyui-lora-manager"
description = "LoRA Manager for ComfyUI - An extension for managing LoRA models with previews and metadata integration."
version = "0.5.1"
version = "0.5.2"
license = {file = "LICENSE"}
dependencies = ["aiohttp", "jinja2", "safetensors"]