Skip to content

armgit / peach

Public Imported from GitHub
0

Peach: Local-first video metadata scraper and media manager.

未归属成为一类,而不是详情页上的一句话

longmeidao9021d47ff4f2
diff --git a/README.en.md b/README.en.md
index 1f6dd82a4..d9d11fbbf 100644
--- a/README.en.md
+++ b/README.en.md
@@ -33,7 +33,7 @@ Management → Configuration → Check for updates shows the current version and
| Capability | What it does |
| --- | --- |
-| Browse and search | Find videos and photo collections by work, performer, studio, creator, series or tag |
+| Browse and search | Find videos and photo collections by work, performer, studio, creator, series or tag; works with nobody credited form an Unassigned group you can open from a card or the detail panel |
| Play and save | Play local and mounted media; keep watch-later items, viewing state, Mixes and playlists |
| Follow updates | Register official or archive sources, explicitly check updates, view and save content inside Peach |
| Review and organize | Review external candidates; manage duplicates, junk, unavailable files and trash |
diff --git a/README.md b/README.md
index 83954e43b..861dd6762 100644
--- a/README.md
+++ b/README.md
@@ -29,7 +29,7 @@ Peach 是单用户、本地优先的个人媒体系统。在自己的电脑上
| 能力 | 使用方式 |
| --- | --- |
-| 浏览与搜索 | 按作品、女优、厂牌、创作者、系列和标签查找视频与图集 |
+| 浏览与搜索 | 按作品、女优、厂牌、创作者、系列和标签查找视频与图集;没有署名人的作品归为「未归属」一类,可在卡片和详情页点开 |
| 播放与收藏 | 播放本地和挂载网盘媒体,保存稍后看、观看状态、Mix 与播放列表 |
| 关注与追更 | 登记官方或归档来源,显式检查更新,在站内查看和保存内容 |
| 复核与整理 | 核对外部候选,处理重复文件、垃圾文件、脱盘条目和回收站 |
diff --git a/src/peach/web_catalog.py b/src/peach/web_catalog.py
index 95aca3d4b..6970ca57b 100644
--- a/src/peach/web_catalog.py
+++ b/src/peach/web_catalog.py
@@ -103,6 +103,17 @@ AGENCY_ASSET_CLAUSE = (
"WHERE ae.asset_id=a.id AND agency.kind='agency' AND agency.canonical_name=?)"
)
+#: 「未归属」是一个真实的集合,不是详情页上的一句说明文字:22509 部视频里 4566 部
+#: 没有任何署名人。判据和卡片署名同源(`cardIdentity` 取 creator 或 performer),
+#: 所以卡片上写着「未归属」的每一条,点进这个集合都必须在里面。厂牌和系列不算归属:
+#: 「ラグジュTV 出品」不回答「这是谁」,把有厂牌的排除掉会让集合小掉 631 条,而那批
+#: 恰恰是最该被找出来补人的。
+UNOWNED_ASSET_CLAUSE = (
+ "NOT EXISTS(SELECT 1 FROM asset_entity ae JOIN entity e ON e.id=ae.entity_id "
+ "WHERE ae.asset_id=a.id AND e.kind IN ('performer','creator')) "
+ "AND COALESCE(trim(a.creator),'')=''"
+)
+
#: 搜索里的同一条关系,但按名字模糊比,并且认别名——事务所改名比女优改艺名还常见,
#: 「GRANZPRO」和「LiStarPRO」是同一批人。
AGENCY_SEARCH_CLAUSE = (
@@ -151,6 +162,9 @@ def catalog_filter(contract: WebContract, args):
# 事务所隔一层:作品是它的成员拍的,`asset_entity` 里没有事务所的行。
if args.get("agency"):
where.append(AGENCY_ASSET_CLAUSE); par.append(args["agency"])
+ # 没有署名人的那批也是一类,和「某某的作品」并列,不是一句写在详情页上的说明。
+ if args.get("owner") == "none":
+ where.append(UNOWNED_ASSET_CLAUSE)
if args.get("tag"):
tags = [x for x in args["tag"].split(",") if x]
tag_clause = (
diff --git a/tests/test_rm_web.py b/tests/test_rm_web.py
index dc0db8f25..8099311f1 100644
--- a/tests/test_rm_web.py
+++ b/tests/test_rm_web.py
@@ -1284,6 +1284,52 @@ class WebDataTests(unittest.TestCase):
row = related["items"][0]
self.assertEqual(row["performer_total"], len(row["performer_entities"]))
+ def _add_unowned_and_performer_only_assets(self):
+ con = sqlite3.connect(self.db_path)
+ con.executemany(
+ """INSERT INTO asset(
+ id,location,path,name,medium,size,creator,studio,code,duration,
+ width,height,ctx_length,ctx_orient,ctx_quality,first_seen)
+ VALUES(?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?)""",
+ [
+ (4, "local", r"R:\Media\four.mp4", "four.mp4", "video", 400,
+ None, "ラグジュTV", "259LUXU-1509", 400, 1280, 720, "速食", "横屏", "720P", "2026-08-11"),
+ (5, "local", r"R:\Media\five.mp4", "five.mp4", "video", 500,
+ None, None, None, 500, 1920, 1080, "速食", "横屏", "2K", "2026-08-10"),
+ ],
+ )
+ con.execute("INSERT INTO asset_entity(asset_id,entity_id,role,source,confidence) "
+ "VALUES(5,11,'performer','test',1.0)")
+ con.commit()
+ con.close()
+
+ def test_unowned_is_a_collection_not_a_line_of_text_on_the_detail_panel(self):
+ """卡片上写着「未归属」的每一条,点进这个集合都必须在里面。
+
+ 判据和 `cardIdentity` 同源:没有出镜者、没有创作者。4 号有厂牌也有番号,
+ 却一个人都没署名,它正是这一类;5 号有出镜者,不是。
+ """
+ self._add_unowned_and_performer_only_assets()
+ listed = rm_web.q_items(self.contract, {"owner": "none", "limit": "10"})
+ self.assertEqual([item["id"] for item in listed["items"]], [4])
+ self.assertEqual(listed["total"], 1)
+
+ def test_a_studio_is_not_ownership(self):
+ """「ラグジュTV 出品」不回答「这是谁」。把有厂牌的排除掉,会正好漏掉最该补人的那批。"""
+ self._add_unowned_and_performer_only_assets()
+ row = next(item for item in rm_web.q_items(
+ self.contract, {"owner": "none", "limit": "10"})["items"] if item["id"] == 4)
+ self.assertEqual(row["studio"], "ラグジュTV")
+
+ def test_an_unknown_owner_value_does_not_filter_anything(self):
+ """筛选只认 `none` 这一个取值,别的写法不能悄悄变成一条空条件。"""
+ self._add_unowned_and_performer_only_assets()
+ everything = rm_web.q_items(self.contract, {"limit": "10"})["total"]
+ self.assertEqual(rm_web.q_items(
+ self.contract, {"owner": "", "limit": "10"})["total"], everything)
+ self.assertEqual(rm_web.q_items(
+ self.contract, {"owner": "someone", "limit": "10"})["total"], everything)
+
def test_creator_filters_indexes_and_stats_use_canonical_entities(self):
by_creator = rm_web.q_items(self.contract, {
"creator": "Canonical Creator", "limit": "10",
diff --git a/tests/test_web_ui.py b/tests/test_web_ui.py
index 076dda247..9e6668730 100644
--- a/tests/test_web_ui.py
+++ b/tests/test_web_ui.py
@@ -1670,7 +1670,7 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("if(!item.id)return `<span class=\"idcell")
self.assertPageContains("const creatorList=(refs.creator||[])")
self.assertPageContains("const seriesList=(refs.series||[])")
- self.assertPageContains(".idcell:not(.entitylink){cursor:default}")
+ self.assertPageContains(".idcell:not(.entitylink):not(.unownedlink){cursor:default}")
self.assertPageContains(".idcell.entitylink:hover .idface")
def test_detail_series_is_a_plain_icon_link_not_a_tag_pill(self):
@@ -1992,11 +1992,45 @@ class WebUiSourceTests(unittest.TestCase):
def test_missing_person_identity_uses_unassigned_on_cards_and_players(self):
self.assertPageContains(":{kind:'',name:'未归属'});")
- self.assertPageContains("const who=(it.performers||[])[0]||it.creator||'未归属';")
self.assertPageContains("const ownerName=cast.length?cast[0]:(full.creator||'未归属');")
self.assertPageLacks("it.creator||it.code")
self.assertPageLacks("full.creator||it.code")
+ def test_unassigned_is_a_collection_you_can_open(self):
+ """「未归属」是馆藏里的一类,不是详情页上的一句说明文字。
+
+ 4566 部作品没有任何署名人。写成一行「归属 未归属」,标签和值念的是同一个
+ 词,读完就没有下一步;写成入口,它和女优、厂牌一样点得开、筛得出、清得掉。
+ """
+ # 详情页:和女优组同一个槽位、同一种版式,不是另起一行说明。
+ self.assertPageContains('<section class="idgroup idgroup-unowned">'
+ '<h5 class="idlabel">归属</h5>')
+ self.assertPageContains('<button class="idcell unownedlink" type="button" data-open-unowned')
+ self.assertPageContains("const unowned=!castList.length&&!creatorList.length"
+ "&&!(it.creator||'').trim();")
+ self.assertPageContains("(unowned?unownedGroup")
+ self.assertPageContains('<div class="detailidentity">${identityRows}</div>')
+ # 卡片:署名位上的「未归属」也点得开。
+ self.assertPageContains(':linked?`<button class="who unownedlink" type="button" data-open-unowned>'
+ '${esc(who)}</button>`')
+ # 三个表面共用一个落点,筛选写在 state.owner 上。
+ self.assertPageContains("function openUnowned(){")
+ self.assertPageContains("resetHomeState();state.owner='none';")
+ self.assertPageContains("const unownedLink=e.target.closest('[data-open-unowned]');")
+ self.assertPageContains("$('#stage').querySelectorAll('[data-open-unowned]')"
+ ".forEach(b=>b.onclick=()=>openUnowned());")
+ self.assertPageContains("else openUnowned()};")
+ self.assertPageLacks("else if(it.code){state.q=it.code",
+ "拿番号去搜只能搜回这一条自己,那不是「同类」")
+
+ def test_unassigned_travels_through_url_chip_and_clear_like_any_filter(self):
+ """归类要能被地址栏记住、在筛选条上出现、被「全部清除」清掉。"""
+ self.assertPageContains("const HOME_QUERY_KEYS=['loc','creator','studio','owner',")
+ self.assertPageContains("owner:initialParam('owner')==='none'?'none':'',")
+ self.assertPageContains("if(state.owner==='none')extra.push(['owner','未归属']);")
+ self.assertPageContains("const comboLabel={creator:'创作者',studio:'厂牌',owner:'归属'};")
+ self.assertPageContains("filters.tag='';filters.creator='';filters.studio='';filters.owner=''")
+
def test_narrow_search_has_a_way_out(self):
"""窄屏展开搜索后必须有退出入口。
@@ -2014,12 +2048,16 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains(".searchback{display:inline-flex;position:absolute;left:8px;top:8px")
def test_unlinked_identity_does_not_look_clickable(self):
- """没有实体链接的归属不能长得像链接。
+ """渲染成 `<span>` 的归属不能长得像链接。
- 番号、「未归属」这类值没有资料页可去,渲染成 `<span>`;但它和按钮共用
+ 队列行整行本身就是 `<button>`,里面嵌不了按钮,署名只能出文字;它和按钮共用
`.who` 的强调色,看着能点,点下去落到卡片本身、打开的是视频详情。
+ 「未归属」不在此列——它有自己的集合可去,出的是 `.who.unownedlink` 按钮。
"""
self.assertPageContains(".meta span.who{color:var(--ink-2);cursor:default}")
+ self.assertPageContains(".idcell:not(.entitylink):not(.unownedlink){cursor:default}")
+ self.assertPageContains(".entitylink,.unownedlink{border:0;background:none;padding:0;"
+ "color:var(--tungsten);cursor:pointer;text-decoration:none}")
def test_random_is_the_default_and_each_home_visit_gets_a_fresh_batch(self):
"""每次进入首页换种子,同一次访问的分页继续稳定。"""
@@ -2546,8 +2584,8 @@ class WebUiSourceTests(unittest.TestCase):
def test_links_only_use_underlines_on_hover(self):
"""文字链接允许悬停下划线,默认状态保持清爽。"""
- self.assertPageContains(".entitylink:hover{color:var(--ink);text-decoration:none}")
- self.assertPageContains(".idcell.entitylink:hover,.mav.entitylink:hover{text-decoration:none}")
+ self.assertPageContains(".entitylink:hover,.unownedlink:hover{color:var(--ink);text-decoration:none}")
+ self.assertPageContains(".idcell.entitylink:hover,.idcell.unownedlink:hover,.mav.entitylink:hover{text-decoration:none}")
self.assertPageContains(".confighelp a:hover{text-decoration:underline;")
for selector, declarations in re.findall(r'([^{}]+)\{([^{}]*)\}', stylesheet_source()):
if "text-decoration:underline" in declarations:
@@ -6955,7 +6993,7 @@ class WebUiSourceTests(unittest.TestCase):
self.assertPageContains("$('#combo').querySelectorAll('[data-untag]')"
".forEach(b=>b.onclick=()=>toggleTag(b.dataset.untag));")
self.assertCode("$('#clrAll').onclick=()=>commitContextFilter(filters=>{\n"
- " filters.tag='';filters.creator='';filters.studio=''});")
+ " filters.tag='';filters.creator='';filters.studio='';filters.owner=''});")
# 按下态与表头也读同一份判据,资料页的标签因此和目录一样能叠加。
self.assertPageContains("tagPressed(filterState.tag,t.k)")
self.assertPageContains("aria-pressed=\"${tagPressed(filters.tag,x.k)}\"")
diff --git a/web/app.js b/web/app.js
index b5975cc06..528454e9f 100644
--- a/web/app.js
+++ b/web/app.js
@@ -717,6 +717,7 @@ const initialCatalogUrl=(path=>isCatalogPath(path)||path==='/trash')(
decodeURIComponent(location.pathname));
const initialParam=key=>initialCatalogUrl?initialParams.get(key):null;
state={loc:initialParams.get('loc')??'local,115',creator:initialParam('creator')||'',studio:initialParam('studio')||'',
+ owner:initialParam('owner')==='none'?'none':'',
tag:cleanTagFilter(initialParam('tag')),len:initialParam('len')||'',dur_min:initialParam('dur_min')||'',dur_max:initialParam('dur_max')||'',
tag_match:initialParam('tag_match')==='any'?'any':'all',orient:initialParam('orient')||'',
state:ROUTE_STATES[decodeURIComponent(location.pathname)]||initialParam('state')||'',
@@ -731,7 +732,7 @@ function dropOfflineFromDefaultLoc(){
const kept=state.loc.split(',').filter(Boolean).filter(k=>sourceOnline[k]!==false);
if(kept.length&&kept.length!==state.loc.split(',').filter(Boolean).length)state.loc=kept.join(',');
}
-const HOME_QUERY_KEYS=['loc','creator','studio','tag','tag_match','len','dur_min','dur_max','orient','sort','dir','q','jav'];
+const HOME_QUERY_KEYS=['loc','creator','studio','owner','tag','tag_match','len','dur_min','dur_max','orient','sort','dir','q','jav'];
function homePath(filters=state){
const path=STATE_ROUTES[filters.state]||'/';
const params=new URLSearchParams();
@@ -751,12 +752,21 @@ let barsContext={type:'home',filters:state},detailReturnBarsContext=null;
activeFilterState() 取走了——取到的是资料页那份筛选,它没有 state 这个键,
于是四枚视图胶囊一枚都不亮,首页看上去像谁都没选中。 */
function resetHomeState(){
- state={loc:state.loc,creator:'',studio:'',tag:'',tag_match:'all',len:'',dur_min:'',dur_max:'',
+ state={loc:state.loc,creator:'',studio:'',owner:'',tag:'',tag_match:'all',len:'',dur_min:'',dur_max:'',
orient:'',state:'',sort:appSettings.defaultSort,dir:preferredDirection(appSettings.defaultSort,appSettings.defaultSort,appSettings.defaultSortDirection),
seed:rollSeed(),q:'',jav:'',thumb:'0'};
barsContext={type:'home',filters:state};detailReturnBarsContext=null;
barsDataCache=null;barsDataPromise=null;
}
+/* 「未归属」是全库那一类,不是当前这一页里的子筛选:在某位女优的资料页上再筛「没有
+ 署名人」永远是空的。所以它和打开资料页一样离开当前语境,回目录只留这一条筛选,
+ 顶栏芯片指的就是同一份列表。 */
+function openUnowned(){
+ resetHomeState();state.owner='none';
+ $('#q').value='';disposeStage(false);showHomeSurfaces();
+ route(homePath());buildEdge();buildBars();load(true);
+ window.scrollTo({top:0,behavior:'smooth'});
+}
function openHome(scroll=false){
resetHomeState();route('/');$('#q').value='';disposeStage(false);showHomeSurfaces();
buildEdge();buildBars();load(true);
@@ -2071,7 +2081,11 @@ function cardIdentity(it,linked=true){
const whoHtml=coStarred
? link('who',`data-entity-kind="performer" data-entity-name="${esc(performer)}"`,esc(performer))
+`<span class="whomore">等 ${performerTotal} 人</span>`
- : (whoKind?link('who',`data-entity-kind="${whoKind}" data-entity-name="${esc(who)}"`,esc(who)):`<span class="who">${esc(who)}</span>`);
+ : (whoKind?link('who',`data-entity-kind="${whoKind}" data-entity-name="${esc(who)}"`,esc(who))
+ /* 没有署名人的那批是馆藏里的一类,不是一句读完就没用的说明:这里点得开,
+ 和女优名、厂牌名一样。队列行整行本身是 <button>,嵌不了按钮,仍出文字。 */
+ :linked?`<button class="who unownedlink" type="button" data-open-unowned>${esc(who)}</button>`
+ :`<span class="who">${esc(who)}</span>`);
return {avatar,whoHtml};
}
function cardHtml(it,cls){
@@ -2504,6 +2518,8 @@ function wireCards(root,onClick){
底下的标签和播放分支一个都轮不到。 */
const ent=e.target.closest('[data-entity-kind]');
if(ent&&el.contains(ent)){e.stopPropagation();openEntity(ent.dataset.entityKind,ent.dataset.entityName);return}
+ const unownedLink=e.target.closest('[data-open-unowned]');
+ if(unownedLink&&el.contains(unownedLink)){e.stopPropagation();openUnowned();return}
/* 卡片上的标签是「只看这个标签」,已经在筛它就取消。在哪一屏点就在哪一屏
生效:目录上换成这个标签,资料页上是在这个人/厂牌内部换。 */
const tg=e.target.closest('.tg');
@@ -2820,9 +2836,11 @@ function renderCombo(){
const cur=tagList(); const extra=[];
if(state.creator)extra.push(['creator',state.creator]);
if(state.studio)extra.push(['studio',state.studio]);
+ if(state.owner==='none')extra.push(['owner','未归属']);
if(!cur.length&&!extra.length){$('#combo').innerHTML='';return}
+ const comboLabel={creator:'创作者',studio:'厂牌',owner:'归属'};
$('#combo').innerHTML=
- extra.map(([k,v])=>`<span class="cb">${k==='creator'?'创作者':'厂牌'} ${esc(v)}
+ extra.map(([k,v])=>`<span class="cb">${comboLabel[k]} ${esc(v)}
<b data-clear="${k}">✕</b></span>`).join('')
+cur.map(t=>`<span class="cb">${esc(tagLabel(t))} <b data-untag="${esc(t)}">✕</b></span>`).join('')
+`<button class="clr" id="clrAll">全部清除</button>`;
@@ -2830,7 +2848,7 @@ function renderCombo(){
$('#combo').querySelectorAll('[data-clear]').forEach(b=>b.onclick=()=>
commitContextFilter(filters=>{filters[b.dataset.clear]=''}));
$('#clrAll').onclick=()=>commitContextFilter(filters=>{
- filters.tag='';filters.creator='';filters.studio=''});
+ filters.tag='';filters.creator='';filters.studio='';filters.owner=''});
}
/* ── 统计与管理 ── */
@@ -7392,7 +7410,6 @@ async function openItem(id,push=true,queueContext=null,anchor=null){
const online=it.location==='online';
/* 保存过的在线资产照常播;只有反查不到关注条目时才拦下来说明原因。 */
const onlineGated=online&&!it.follow_item_id;
- const who=(it.performers||[])[0]||it.creator||'未归属';
const refs=it.entity_refs||{},studioRef=(refs.studio||[])[0];
// 共演作品的女优逐行列出,每行带自己的头像;标签只写在第一行,其余留空保持对齐。
const performerRefs=(refs.performer||[]).length
@@ -7444,9 +7461,21 @@ async function openItem(id,push=true,queueContext=null,anchor=null){
? `<section class="idgroup idseries"><h5 class="idlabel">系列</h5>
<div class="seriesrows">${list.map(seriesCell).join('')}</div></section>`
: '';
+ /* 一个都没有时,「未归属」就是这条作品所属的那一类,和女优、厂牌并列:馆藏里
+ 4566 条同类,点进去看得到全部。写成一行「归属 未归属」的说明文字,是把一个
+ 能筛的集合降级成读完就没用的字——标签和值还念的是同一个词。 */
+ const unownedGroup=`<section class="idgroup idgroup-unowned"><h5 class="idlabel">归属</h5>
+ <div class="idrow"><button class="idcell unownedlink" type="button" data-open-unowned
+ title="打开未归属:馆藏里没有署名人的作品">
+ <span class="idface">${icon('user-round')}</span><span class="idname">未归属</span></button></div></section>`;
+ /* 判据和 `owner=none` 那条 SQL 一样:没有出镜者、没有创作者实体、扁平 creator 也空。
+ 厂牌和系列不算归属,有厂牌照样是未归属——两边说的必须是同一批作品,否则卡片上
+ 写着「未归属」的这条点进集合会不在里面。 */
+ const unowned=!castList.length&&!creatorList.length&&!(it.creator||'').trim();
const primaryIdentity=
- idGroup(performerLabel(it),'performer',castList,
- castOverflow?`<button class="castmore" id="castMore">还有 ${castOverflow} 位</button>`:'')
+ (unowned?unownedGroup
+ :idGroup(performerLabel(it),'performer',castList,
+ castOverflow?`<button class="castmore" id="castMore">还有 ${castOverflow} 位</button>`:''))
+idGroup('厂牌','studio',studioList);
const identityRows=
(primaryIdentity?`<div class="identityprimary">${primaryIdentity}</div>`:'')
@@ -7484,7 +7513,7 @@ async function openItem(id,push=true,queueContext=null,anchor=null){
<span class="detailmetaitem">${icon('monitor')}<span>${it.width||'?'}×${it.height||'?'}</span></span>
<span class="detailmetaitem">${icon('hard-drive')}<span>${fmtSize(it.size||0)}</span></span>
${it.release_date?`<span class="detailmetaitem">${icon('calendar')}<span>${esc(it.release_date)}</span></span>`:''}</div>
- <div class="detailidentity">${identityRows||`<div class="identityrow"><span></span><span class="ilabel">归属</span><span>${esc(who)}</span></div>`}</div>
+ <div class="detailidentity">${identityRows}</div>
<div class="stags" id="detailTags"></div>
<div class="trace"><div class="lab mono"><span>离开位置</span><span id="ratioTxt">0%</span></div>
<div class="bar"><u id="watched"></u><b id="mark"></b></div>
@@ -7671,6 +7700,7 @@ async function openItem(id,push=true,queueContext=null,anchor=null){
renderDetailTags();
$('#stage').querySelectorAll('[data-entity-kind]').forEach(b=>b.onclick=()=>
openEntity(b.dataset.entityKind,b.dataset.entityName));
+ $('#stage').querySelectorAll('[data-open-unowned]').forEach(b=>b.onclick=()=>openUnowned());
const paintLater=value=>{it.watch_later=value;const button=$('#stageLater');if(!button)return;
button.setAttribute('aria-pressed',value);button.innerHTML=value?icon('check'):icon('bookmark-plus')};
$('#stageLater').onclick=async()=>{const button=$('#stageLater');setActionBusy(button);
@@ -7966,7 +7996,7 @@ async function tokShow(dir){
$('#tokClose').click();
if(full.performers&&full.performers[0])openEntity('performer',full.performers[0]);
else if(full.creator)openEntity('creator',full.creator);
- else if(it.code){state.q=it.code;buildEdge();buildBars();load(true)}};
+ else openUnowned()};
$('#tokWho').onclick=openTokOwner;
$('#tokAvatar').onclick=openTokOwner;
$('#tokMeta').textContent=`· ${fmtDur(it.duration)} · ${it.ctx_orient||''} · ${tokIdx+1}/${tokList.length}`;
diff --git a/web/css/11-identity.css b/web/css/11-identity.css
index 16cce0492..667c898ff 100644
--- a/web/css/11-identity.css
+++ b/web/css/11-identity.css
@@ -29,9 +29,9 @@
overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-2)}
.idgroup-performer .idcell{align-items:center}
.idgroup-performer .idname{text-align:center}
-.idcell:not(.entitylink){cursor:default}
-.idcell.entitylink:hover .idface{box-shadow:0 0 0 2px var(--ink-2)}
-.idcell.entitylink:hover .idname{color:var(--ink)}
+.idcell:not(.entitylink):not(.unownedlink){cursor:default}
+.idcell.entitylink:hover .idface,.idcell.unownedlink:hover .idface{box-shadow:0 0 0 2px var(--ink-2)}
+.idcell.entitylink:hover .idname,.idcell.unownedlink:hover .idname{color:var(--ink)}
.castmore{align-self:center;height:46px;padding:0 12px;border:1px dashed var(--overlay-10);
border-radius:var(--floating-radius);background:transparent;color:var(--ink-2);font-size:var(--fs-xs);cursor:pointer}
.castmore:hover{background:var(--hover)}
@@ -125,7 +125,8 @@ button.serieslink.entitylink:hover{color:var(--tungsten);text-decoration:none}
min-height:40px;padding:8px 16px;border:1px solid var(--border-15);border-radius:var(--control-radius);background:transparent;
color:var(--ink-2);cursor:pointer}.indexmore:hover,.entitymore:hover{background:var(--hover);color:var(--ink)}
.indexmore:disabled,.entitymore:disabled{opacity:.5;cursor:wait}
-.entitylink{border:0;background:none;padding:0;color:var(--tungsten);cursor:pointer;text-decoration:none}
-.entitylink:hover{color:var(--ink);text-decoration:none}
+/* 「未归属」和实体名一样是个入口,只是它指向一个集合而不是一个人,样式同源。 */
+.entitylink,.unownedlink{border:0;background:none;padding:0;color:var(--tungsten);cursor:pointer;text-decoration:none}
+.entitylink:hover,.unownedlink:hover{color:var(--ink);text-decoration:none}
/* Peach 的可点击身份只用颜色、头像描边和背景反馈,不使用链接下划线。 */
-.idcell.entitylink:hover,.mav.entitylink:hover{text-decoration:none}
+.idcell.entitylink:hover,.idcell.unownedlink:hover,.mav.entitylink:hover{text-decoration:none}
diff --git a/web/css/12-cards.css b/web/css/12-cards.css
index c25059e9b..10e396a0f 100644
--- a/web/css/12-cards.css
+++ b/web/css/12-cards.css
@@ -314,8 +314,9 @@ body[data-density="dense"] .junkcard .junkactions button{justify-content:center}
.javedition.partlabel{color:var(--muted);margin-left:6px}
.meta .s{display:flex;gap:8px;color:var(--muted);align-items:center;flex-wrap:wrap}
.meta .who{color:var(--ink-2);min-width:0;max-width:100%;display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:bottom}
-/* 没有实体链接的归属只是一段文字:番号、「未归属」这类值没有资料页可去。
- 染成强调色会让人以为能点,点下去却落到卡片本身、打开的是视频详情。 */
+/* 归属渲染成 `<span>` 就是不可点的那一种(队列行整行本身是按钮,里面嵌不了按钮)。
+ 染成强调色会让人以为能点,点下去却落到卡片本身、打开的是视频详情。
+ 「未归属」不在此列:它有自己的集合可去,出的是 `.who.unownedlink` 按钮。 */
.meta span.who{color:var(--ink-2);cursor:default}
.flags{display:flex;gap:3px;margin-left:auto}
.flags i{width:6px;height:6px;border-radius:0;display:block}