fix(civitai): anchor model-page URL parsing and improve missing-model diagnostics (#1140)

This commit is contained in:
Eric-Yeh
2026-10-09 08:07:00 +08:00
committed by GitHub
parent fad17decdf
commit 01ffda7303
6 changed files with 71 additions and 8 deletions
+2 -1
View File
@@ -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