Error file size (#170)

* Information providing wrong file size

* prepare release 2.5.5
This commit is contained in:
Hayden
2025-03-28 17:23:41 +08:00
committed by GitHub
parent 581d2c14fc
commit ab4e0d38e1
2 changed files with 5 additions and 3 deletions

View File

@@ -457,8 +457,10 @@ class ModelDownload:
# When parsing model information from HuggingFace API,
# the file size was not found and needs to be obtained from the response header.
if total_size == 0:
total_size = float(response.headers.get("content-length", 0))
# Fixed issue #169. Some model information from Civitai, providing the wrong file size
response_total_size = float(response.headers.get("content-length", 0))
if total_size == 0 or total_size != response_total_size:
total_size = response_total_size
task_content.sizeBytes = total_size
task_status.totalSize = total_size
self.set_task_content(task_id, task_content)

View File

@@ -1,7 +1,7 @@
[project]
name = "comfyui-model-manager"
description = "Manage models: browsing, download and delete."
version = "2.5.4"
version = "2.5.5"
license = { file = "LICENSE" }
dependencies = ["markdownify"]