Refactor model configuration structure and update README

- Changed the configuration format to use a single 'models' list with entries containing 'url' and 'type'.
- Updated validation logic to ensure 'models' entries are correctly structured.
- Modified download logic to check for existing directories before downloading.
- Revised README to reflect new configuration format and usage instructions.

Signed-off-by: Daniel Henry <iamdanhenry@gmail.com>
This commit is contained in:
2026-01-31 15:09:12 -06:00
parent 139b299070
commit 93e53ad838
5 changed files with 55 additions and 49 deletions

View File

@@ -129,7 +129,9 @@ def download_one(
print(f" Would download to: {dest_dir / filename_guess}")
return True
dest_dir.mkdir(parents=True, exist_ok=True)
if not dest_dir.is_dir():
print(f" Skip: Directory does not exist: {dest_dir}. Create models/<type> under your ComfyUI base.")
return False
# Single GET with stream (Civitai redirects to S3 and often doesn't support HEAD)
try: