mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-10-09 02:52:12 -03:00
fix(civitai): anchor model-page URL parsing and improve missing-model diagnostics (#1140)
This commit is contained in:
@@ -148,7 +148,8 @@ def extract_civitai_model_url_parts(
|
||||
if parsed is None:
|
||||
return None, None
|
||||
|
||||
path_match = re.search(r"/models/(\d+)", parsed.path)
|
||||
# Download URLs contain version IDs, not model IDs.
|
||||
path_match = re.match(r"^/models/(\d+)(?:/|$)", parsed.path)
|
||||
if not path_match:
|
||||
return None, None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user