Skip to content

armgit / peach

Public Imported from GitHub
0

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

docs(adr): 新增 ADR-0096 账号作品头像规则并同步 README 与复用清单

longmeidao74b2bb6bbd4e
diff --git a/README.en.md b/README.en.md
index b468c09e3..ddc2cae66 100644
--- a/README.en.md
+++ b/README.en.md
@@ -64,7 +64,7 @@ Want to look around before installing? The [live demo](https://demo.peach.video)
- **Search**: type a few characters and performers, codes and videos show up together.
- **Identity categories**: performers are grouped by identity and release market into JAV performers, amateurs, Western performers, adult bloggers and animation authors. Amateurs are performers with trusted evidence of non-professional appearances, or whose every video is an amateur release (an FC2-PPV code, or a 素人 tag that does not come from the vision model); JAV and Western performers are never filed as amateurs, and other genres only filter videos. The roster has three side-by-side entries, Performers, Sellers and Online, and sellers are matched to their works by source account. The filter bar only shows categories that have entries, and profile pages show the category with an icon left of the video count.
- **Video counts**: clearly segmented parts of the same FC2 collection count as one video, while the part files and cast credits are kept in full. Identities confirmed as merged share their profile and videos, and old profile URLs lead to the canonical identity.
-- **Account identity**: the adult blogger category needs an identity or account source; unverified entries remain visible in the full roster. Account avatars prefer saved images, and video frames are used as an avatar only when the person's identity is backed by evidence. Aliases on profile pages carry identity names only; quality and bundle labels stay in the file details.
+- **Account identity**: the adult blogger category needs an identity or account source; unverified entries remain visible in the full roster. Account avatars prefer saved images. A personal blogger with evidence of their own identity gets an avatar automatically once the same face is cut from frames of two videos; other accounts show a frame from a representative video, marked as not the person. Aliases on profile pages carry identity names only; quality and bundle labels stay in the file details.
- **Western image sources**: performers and adult bloggers can use a Babepedia gallery portrait. For Vixen network titles such as Tushy, official covers are matched by performer and release date and shared by cards, details and avatar cropping; titles without a unique match wait for review.
- **Performer pages**: aliases, birthday and measurements, social accounts and JavDB and MISSAV links on one page, above every video of hers in your library and her photos. When changing the avatar, gallery portraits, video covers, local images and image URLs can all be cropped with a box first, or used whole.
- **Filling in details**: by video code, Peach fills in titles, performers, studios and high-resolution covers from studio sites, DMM, JavBus, JavDB and others. It only fills empty fields and never overwrites your edits.
diff --git a/README.md b/README.md
index 18bb87513..4a14b44d4 100644
--- a/README.md
+++ b/README.md
@@ -64,7 +64,7 @@ https://github.com/user-attachments/assets/a5610874-e611-41bb-be22-7d99f0d64b62
- **搜索**:输入几个字,女优、番号和影片一起出来。
- **身份分类**:艺人按身份与发行范围分为女优、素人、西方、网黄博主和动画作者。素人指有可信非职业出演证据,或全部出演作品都是素人发行(FC2-PPV 番号,或带非视觉模型来源的「素人」标签)的艺人,女优与西方出演者不归为素人;其他作品题材只用于作品筛选。名册使用「艺人、卖家、在线」三个并列入口,卖家按来源账号与作品对应。筛选条只显示有内容的分类,资料页在视频数量左侧显示分类与图标。
- **作品计数**:明确分段的同一 FC2 合集计为一个视频,分段文件和出演归属完整保留。已确认合并的身份共用资料与作品,旧资料页地址通往规范身份。
-- **账号身份**:网黄博主分类需要身份或账号来源;未核实的条目可在全部名册查看。账号头像优先使用保存的图片,作品画面只有在本人身份有依据时才用作头像。资料页中的别名只承载身份名称,画质和资源包规格保留在文件信息中。
+- **账号身份**:网黄博主分类需要身份或账号来源;未核实的条目可在全部名册查看。账号头像优先使用保存的图片;有本人身份依据的个人博主,在两部作品画面截到同一张脸时自动装上头像;其余账号以代表作画面占位,并标明非本人。资料页中的别名只承载身份名称,画质和资源包规格保留在文件信息中。
- **西方图片来源**:出演者与网黄博主可选 Babepedia 主图库人像;Tushy 等 Vixen 网络作品以出演者和发行日匹配官方封面,卡片、详情和头像框选共用原图,无法唯一匹配时留待核验。
- **女优页**:别名、生日身材、社媒和 JavDB、MISSAV 链接汇在一页,下面是她在你馆藏里的全部作品和照片;换头像时图库人像、作品封面、本机图片和图片地址都能先框一块,也能整张使用。
- **补资料**:按番号从片商官网、DMM、JavBus、JavDB 等站点补标题、女优、厂牌和高清封面;只填空着的,不覆盖你改过的。
diff --git a/docs/REUSE.md b/docs/REUSE.md
index 0afcb6e41..9fbba3bce 100644
--- a/docs/REUSE.md
+++ b/docs/REUSE.md
@@ -24,7 +24,7 @@ FC2 卖家名册复用 `sources/fc2.py` 的 `label`、`seller_url` 来源契约
关注作者建档(`follow_creators`,ADR-0096)复用关注页的作者归组 `follow_identity.name_key`/`author_name`、`canonicalize_entity_name` 的平台名闸、`follow_sources.profile_link_identity` 的名片识别和后继派发(ADR-0040)。链接与别名按 `auto:follow-creator@<批次>` 记归属,`revert_auto_landing.py` 统一撤回;实体有其他引用时保留。资料页的同名确认复用 `Note` 与 Board `Button`,不新增依赖。
-账号归属复用 `review_decision`、`creator_collection_base`、`write_owned_fields` 和全库归属审计。明确拒绝的资产与账号组合在自动摄取时跳过;用户写入保留复核入口。网黄博主只命中可信个人、内容创作者或发布账号断言,未分类账号保留全部名册入口。`attach_avatar_availability` 集中处理资料页、索引、搜索与统计的作品头像:发布账号缺少本人或出演职业证据时不提供作品帧兜底,已安装图片独立保留。来源核查清单、逐关系回执和备份存于 `peach-data/review/`。
+账号归属复用 `review_decision`、`creator_collection_base`、`write_owned_fields` 和全库归属审计。明确拒绝的资产与账号组合在自动摄取时跳过;用户写入保留复核入口。网黄博主只命中可信个人、内容创作者或发布账号断言,未分类账号保留全部名册入口。`attach_avatar_availability` 集中处理资料页、索引、搜索与统计的作品头像:发布账号缺少本人或出演职业证据时作品帧照常兜底,另标 `avatar_stand_in`,已安装图片独立保留。个人博主的补头像复用 `avatar_cover_face.face_square`、`readable_cut` 与 ADR-0074 的 `agreeing` 两部互证,画面取自接触印相九格(ADR-0099)。来源核查清单、逐关系回执和备份存于 `peach-data/review/`。
`entity_identity_research` 与 `apply_entity_identity_research.py` 复用规范实体写入、字段归属保护、只读预览、SQLite 备份及冻结计划。逐行撤回回执核对后续修改,新增实体有额外引用时拒绝删除;观看历史和人工判断不被回滚覆盖。资料站调研复用 `performer_alias_followup.WikiSitePages`(包着 `sources/seesaa.py` 的 `WikiPages`,加 404 记忆与按站冷却)、作品表解析 `rows()` 与 `person_profile`,以及 EUC-JP 页名直取写法,不新增依赖;`creator_identity_followup` 的后继壳照抄补厂牌、补别名两条。
diff --git a/docs/adr/0099-account-work-portraits.md b/docs/adr/0099-account-work-portraits.md
new file mode 100644
index 000000000..62cc8bf4b
--- /dev/null
+++ b/docs/adr/0099-account-work-portraits.md
@@ -0,0 +1,57 @@
+# ADR-0099:个人博主按两部作品互证自动截脸,其余账号用代表作画面占位
+
+- 状态:Accepted
+- 日期:2026-10-09
+- 修订:ADR-0095 的作品头像判据(`work_portrait_predicate`)
+- 相关:ADR-0040、ADR-0053、ADR-0074
+
+## 背景
+
+发布账号(`creator`)的作品画面是否代表账号本人,由 `entity_classification.work_portrait_predicate`
+判定:账号须有可信的 `identity=person` 或出演类职业断言(`adult_performer`、`model`、`actor`),
+且没有卖家、厂牌、动画作者或机构类断言。判据成立的是个人博主,其余是只发布他人作品的账号。
+
+补头像后继只派女优,个人博主有作品也装不上头像。不过判据的账号在名册、资料页、口味榜与统计里
+一律不显示作品帧,圆框只剩首字母。`TokyoDolls`(745 部作品,分类只有 `identity=account`)
+就属于这种情况。
+
+博主作品大多没有番号。`western_artwork.artwork_key` 给它们的键是 `ASSET-ID-<资产 id>`,
+封面目录里一般没有这张图;画面来源是接触印相(3×3 九格,与 `/poster` 同一网格)。
+
+## 决策
+
+**一、补头像后继派给个人博主。**`avatar_followup.KINDS` 包含 `creator`。新登记与存量补派都只取
+过判据的账号,跑的时候再判一次:派出之后分类被改、不再过判据时结论是「账号没有本人身份依据」,
+这一次不写 `Attempts`。
+
+**二、博主不查图库,只从自己的作品画面截脸。**作品按 `role='creator'` 取,同一作品挂着别的发布
+账号就不取(`avatar_cover_face.single_works`)。每部作品把接触印相切成九格,有封面的作品封面
+也算一格,逐格检脸,留脸最宽、截出来还检得出脸的那一格(`sheet_faces`)。截法沿用
+`face_square` 与 `readable_cut`。一条后继最多看 24 部作品。
+
+**三、两部不同作品的脸互相过线才装。**判据复用 ADR-0074 第四条:比截出来的方图,余弦落在
+`COSINE_THRESHOLD` 与 `NEAR_DUPLICATE` 之间才算互证(`avatar_offsite_cover_face.agreeing`)。一部作品
+只出一张脸,同一部片的两格不算两份证据。情侣号、多人号的两部作品截出不同的人时一张都不装,
+截到的脸留进候选缓存,挑图弹层里可以点。不另设分类排除情侣号。
+
+**四、装上的与封面截脸同一档。**来源记录 `provider: cover-face`、`identity_verified: false`,
+带 `sheet_cell` 与互证证据(作品键、每一对的余弦)。之后有人挑的图或更宽的脸,照样换掉它。
+
+**五、指纹按印相数作品。**博主的作品数只数铺过接触印相的作品,后补印相会让账号重新入列。女优的
+指纹不变,规则版本保持 6。
+
+**六、过不了判据的账号用代表作画面占位,并标明不是本人。**`web_catalog.attach_avatar_availability`
+照常按印相判 `has_avatar`;账号不过判据时另下发 `avatar_stand_in: true`。资料页、索引、搜索、
+口味榜与统计都从这一处取标志。前端在代表作头像打头的圆图上加 `title` 与 `aria-label`
+「代表作画面,非本人」,不加徽章。已装实体图的圆图不加。
+
+**七、挑图弹层照列作品画面。**这类账号的作品格说明以「代表作画面,非本人」开头。人挑哪一张由
+用户决定;作品画面装上的来源记录写 `identity_verified: false`。
+
+## 后果
+
+- 有两部以上独占作品、印相里截得出同一张脸的个人博主,会自动装上头像。
+- `TokyoDolls` 这类只有账号身份的条目,圆框显示代表作画面,悬停可见「代表作画面,非本人」。
+ 它们不会派补头像后继。
+- 卡片署名、Mix 叠放头像与沉浸作者那一格读的是顶栏代表作表(`representatives.ts`),表里
+ 只有女优与厂牌,不带 `avatar_stand_in`。