feat(identity): escalate ambiguous/no_match via site detail-page IDs (ID-3)

Fetch the detail page (cached, rate-limited, per-site hourly cap
identity.detailIdsPerSiteHour) for search results, subscription-related
candidates, pool enrich and manual re-identify; resolve IMDb/TMDB via TMDB,
douban via cached douban subjects (site detail info block / META-2 snippets).
No identity_unresolved decisions for releases with site IDs.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
rootandClaude Opus 5.5 committed 2026-10-01 00:15:20 +08:00
1 parent cba214e93e
commit 3d5a50b30a
9 files changed
+867 -10

No files matched your search

@@ -207,6 +207,12 @@ const IDENTITY_CARD: CardSpec = {
hint: "每条新资源都查一次 TMDB。RSS 量大时每天可能上千次请求,站点独有的短剧和综艺多半查不到",
wide: true,
},
{
name: "identity.detailIdsPerSiteHour",
label: "识别时每站每小时最多抓详情页",
kind: "number",
hint: "标题认不准时,抓站点详情页取 IMDb、TMDB 或豆瓣 ID 再识别;只在搜索、订阅相关资源、补全和手动重新识别时抓,RSS 入库不抓。0 = 不抓",
},
{
name: "identity.autoEnrich",
label: "TMDB 查不到时自动补全元数据",
@@ -241,6 +247,7 @@ const IDENTITY_CARD: CardSpec = {
"identity.enrichDailyBudget": n(s.identity.enrichDailyBudget),
"identity.enrichDomains": s.identity.enrichDomains.join("\n"),
"identity.enrichSnippetAllSites": s.identity.enrichSnippetAllSites ?? true,
"identity.detailIdsPerSiteHour": n(s.identity.detailIdsPerSiteHour ?? 10),
}),
toPatch: (v) => ({
identity: {
@@ -252,6 +259,7 @@ const IDENTITY_CARD: CardSpec = {
.map((d) => d.trim().toLowerCase())
.filter(Boolean),
enrichSnippetAllSites: v["identity.enrichSnippetAllSites"] === true,
detailIdsPerSiteHour: Number(v["identity.detailIdsPerSiteHour"]),
},
}),
extra: () => <EnrichStatsTable />,