mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-26 15:38:52 -03:00
Fix issue #870 where importing recipes from CivitAI image URLs would return the wrong image when the API response did not contain the requested image ID. The get_image_info() method now: - Iterates through all returned items to find matching ID - Returns None when no match is found and logs warning with returned IDs - Handles invalid (non-numeric) ID formats New test cases: - test_get_image_info_returns_matching_item - test_get_image_info_returns_none_when_id_mismatch - test_get_image_info_handles_invalid_id Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>