Files
willmiao-ComfyUI-Lora-Manager/py/services/model_sources
Will Miao 85d27dfa36 feat(metadata): link foreign-ecosystem models to their real source via CivArchive hints
When CivArchive's hash index only knows a file as a foreign-ecosystem
entry (e.g. a civision mirror of a ModelScope upload), record the
entry's source URL during the lookup. On a not-found fetch the sync
service now resolves that URL through the model-source registry, proves
via a strict sha256 gate (ModelScopeSource.fetch_card_context_by_hash)
that the repository really publishes this exact file, then persists the
source_url/source_platform link and runs the download-time hydration
path, yielding the correct name, base model, tags, trigger words and
example images from the actual source site.

Models already linked to an external source are never re-linked, and
rate-limited runs skip the extra fetches entirely.
2026-10-15 23:12:52 +08:00
..