From d7f5f65fc1025d21b258af3192bfcebc8f3fde79 Mon Sep 17 00:00:00 2001 From: kyeunga25 <49793173+kyeunga25@users.noreply.github.com> Date: Tue, 8 Sep 2026 02:08:10 +0800 Subject: [PATCH] (feat): add 2019 spring Hangyaku themes --- CHANGELOG.md | 6 ++ README.md | 6 +- docs/DATA_PROVENANCE.md | 4 +- docs/DATA_SOURCES.md | 4 +- docs/PROJECT_PLAN.md | 5 +- docs/QA_V1_51_2019_SPRING_HANGYAKU.md | 27 ++++++ docs/SOURCE_TERMS.md | 3 +- package-lock.json | 4 +- package.json | 2 +- src/data/curated-data.ts | 4 + src/data/curated-season-registry.ts | 2 +- src/data/curated-seeds/2019/spring.ts | 38 ++++++++ src/data/curated-theme-sources/2019/spring.ts | 18 ++++ src/data/curated-theme-videos/2019/spring.ts | 8 ++ tests/e2e/phase1.spec.ts | 95 ++++++++++++++++--- tests/unit/api-smoke.test.ts | 2 +- tests/unit/catalog-navigation.test.ts | 2 +- tests/unit/curated-2019-spring.test.ts | 68 ++++++++++++- tests/unit/curated-catalog.test.ts | 12 +-- tests/unit/curated-season-registry.test.ts | 2 +- .../curated-theme-source-registry.test.ts | 4 +- .../unit/curated-theme-video-registry.test.ts | 6 +- tests/unit/page-data.test.ts | 6 +- 23 files changed, 280 insertions(+), 48 deletions(-) create mode 100644 docs/QA_V1_51_2019_SPRING_HANGYAKU.md diff --git a/CHANGELOG.md b/CHANGELOG.md index 8342d8a..0b990e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,12 @@ All notable public product changes are recorded here. Release notes contain only product scope and reproducible validation; platform identifiers and private operational details are excluded. +## v1.51.0 — 2019 春季《叛逆性百萬亞瑟王 第二季》 + +- 收錄第二季 TV 版的 OP〈OPEN THE WORLDS〉及 ED〈PEARLY×PARTY〉,保留原演唱組合、CD 日期及 OP 的先行配信日期。 +- 新增 Lantis 官方完整片頭 MV;第一季歌曲、插曲、單曲附加曲及 ORESAMA 的 Funkapop 改編版不作本季 OP/ED,未核對的個別演唱及製作署名維持空白。 +- 春季共 35 套作品、101 筆 OP/ED;本季與夏季仍在補充,2025 秋季尚未收錄。 + ## v1.50.0 — 2019 春季《灰姑娘女孩劇場 CLIMAX SEASON》 - 收錄 2019 年 TV 短篇系列與四、五、六月的三首輪替 ED;保留五人合唱名義、個別演唱者、已核對製作署名及 CD 完整版日期。 diff --git a/README.md b/README.md index 80163e8..5c06b2e 100644 --- a/README.md +++ b/README.md @@ -2,9 +2,9 @@ Anisonary 是以 Astro + strict TypeScript 建立的動畫歌曲目錄,按季度與日本編輯播出日瀏覽作品、OP 與 ED。網站輸出為純靜態資產,正式交付使用 **Cloudflare Workers Static Assets**;它不是 Cloudflare Pages,也沒有 application Worker backend。下方同時保留 English technical notes。 -This repository contains the completed static product: season directory, anime detail pages, traceable OP/ED credits and links, per-song source ledgers, source-attributed media, local-only cross-season search, privacy-bounded offline reading, a GitHub correction flow, and deployment through Cloudflare Workers Static Assets. The default catalogue covers twenty-nine reviewed snapshots across 2019–2026, with 1,951 unique titles and 4,328 known OP/ED records. The 2019 spring snapshot contains thirty-four TV titles, including television shorts and a TV recut; summer contains 38 TV titles and four web series. Both quarters are still being expanded, and 2025 fall is not yet included. Fictional Mock Data remains test-only. +This repository contains the completed static product: season directory, anime detail pages, traceable OP/ED credits and links, per-song source ledgers, source-attributed media, local-only cross-season search, privacy-bounded offline reading, a GitHub correction flow, and deployment through Cloudflare Workers Static Assets. The default catalogue covers twenty-nine reviewed snapshots across 2019–2026, with 1,952 unique titles and 4,330 known OP/ED records. The 2019 spring snapshot contains thirty-five TV titles, including television shorts and a TV recut; summer contains 38 TV titles and four web series. Both quarters are still being expanded, and 2025 fall is not yet included. Fictional Mock Data remains test-only. -目前 source 版本:**v1.50.0**。新增 2019 春季《灰姑娘女孩劇場 第四季:CLIMAX SEASON》、三首每月輪替 ED 與官方試聽短版,保留五人合唱名義及各人署名。目錄共有 29 個季度、1,951 套作品與 4,328 筆 OP/ED;春季為 34 套作品、99 筆歌曲,春、夏季仍在補充,2025 秋季尚未收錄。 +目前 source 版本:**v1.51.0**。新增 2019 春季《叛逆性百萬亞瑟王 第二季》的 OP/ED 與官方片頭 MV,區分原演唱組合、改編版及配信/CD 日期。目錄共有 29 個季度、1,952 套作品與 4,330 筆 OP/ED;春季為 35 套作品、101 筆歌曲,春、夏季仍在補充,2025 秋季尚未收錄。 導覽延續固定五個入口與年代、年份、季度目錄;搜尋可按動畫、歌曲、創作者、年份、季度及 OP/ED 篩選,每頁顯示 12 套作品。搜尋完全在瀏覽器內進行,YouTube 只於明確操作後連線。網站與同源靜態 JSON API 共用已審閱資料,無 application backend 或 database binding。依賴安全 gate 繼續鎖定 `fast-uri` 3.1.6 並稽核開發依賴。 @@ -12,7 +12,7 @@ Production build 會從最終 HTML 自動產生 hash-based Content Security Poli | 可用性 / Availability | 成熟度 / Maturity | 證據 / Evidence | | -------------------------------------- | --------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| 公開靜態目錄 / Public static catalogue | Source 版本為 `v1.50.0`;正式發布狀態以對應 Release 驗收摘要為準 | [入口網站 / Live](https://anisonary.k-y.cc) · [版本與驗收 / Releases](https://github.com/kyeunga25/anisonary/releases) · [資料來源 / Sources](docs/DATA_SOURCES.md) · [安全政策 / Security](SECURITY.md) · [授權 / Licence](LICENSING.md) · [版權 / Copyright](COPYRIGHT.md) | +| 公開靜態目錄 / Public static catalogue | Source 版本為 `v1.51.0`;正式發布狀態以對應 Release 驗收摘要為準 | [入口網站 / Live](https://anisonary.k-y.cc) · [版本與驗收 / Releases](https://github.com/kyeunga25/anisonary/releases) · [資料來源 / Sources](docs/DATA_SOURCES.md) · [安全政策 / Security](SECURITY.md) · [授權 / Licence](LICENSING.md) · [版權 / Copyright](COPYRIGHT.md) | ## 技術棧|Technology stack diff --git a/docs/DATA_PROVENANCE.md b/docs/DATA_PROVENANCE.md index e8e5204..2a81d25 100644 --- a/docs/DATA_PROVENANCE.md +++ b/docs/DATA_PROVENANCE.md @@ -31,9 +31,9 @@ API、資料庫、商標或媒體重用權。完整授權邊界見 `first_party` 表示動畫製作/發行方、唱片公司、藝人官方渠道、官方影片或正式播出機構的公開頁面。`cross_check` 表示用於發現缺口及交叉比對的公開索引。兩種角色都是來源分類,不代表數值信心或內容評分。 -2019 春季目前整理 34 套 TV 作品(含電視短篇及重編版),夏季整理 38 套 TV 作品及 4 套網絡連載;兩季的其他作品、跨季延續與特殊歌曲仍待核對;`coverageNote` 會在季度頁及 API 公開說明本季範圍。 +2019 春季目前整理 35 套 TV 作品(含電視短篇及重編版),夏季整理 38 套 TV 作品及 4 套網絡連載;兩季的其他作品、跨季延續與特殊歌曲仍待核對;`coverageNote` 會在季度頁及 API 公開說明本季範圍。 -目前二十九季快照的 season references、1,951 個作品及 4,328 筆 OP/ED 都有結構化 provenance;4,328 筆歌曲全部至少保留一個 `first_party` 與一個 `cross_check` 來源。`tests/unit/curated-catalog.test.ts` 鎖定來源數量、角色、語言、HTTPS、核對日期、Mock URL 禁止條件,以及 legacy labels 與結構化 ledger 的一致性。 +目前二十九季快照的 season references、1,952 個作品及 4,330 筆 OP/ED 都有結構化 provenance;4,330 筆歌曲全部至少保留一個 `first_party` 與一個 `cross_check` 來源。`tests/unit/curated-catalog.test.ts` 鎖定來源數量、角色、語言、HTTPS、核對日期、Mock URL 禁止條件,以及 legacy labels 與結構化 ledger 的一致性。 ## 欄位決策 diff --git a/docs/DATA_SOURCES.md b/docs/DATA_SOURCES.md index 90a02cb..c384314 100644 --- a/docs/DATA_SOURCES.md +++ b/docs/DATA_SOURCES.md @@ -11,13 +11,13 @@ repository 的 Apache-2.0 軟件授權範圍內,詳見 季度完整性定義為:在日本於該季度日曆月份首播的非成人 `TV`/`WEB` 連載動畫,包含短篇、新季度與分割 cour;排除劇場版、OVA、宣傳短片及 18+ 作品。正式播出/配信的獨立特別篇只有在至少兩個季度來源一致歸入該季、並有可追溯第一方發布時才收錄。若作品在季度開始前數日先行發布,亦須由至少兩個季度目錄或主題曲索引一致歸入該季。同一作品跨季時共用一個詳情頁。 -目前 repository 中已審閱的快照為:2026 夏季 70 套、2026 春季 70 套、2026 冬季 66 套、2025 夏季 75 套、2025 春季 82 套、2025 冬季 59 套、2024 秋季 88 套、2024 夏季 68 套、2024 春季 76 套、2024 冬季 75 套、2023 秋季 100 套、2023 夏季 75 套、2023 春季 79 套、2023 冬季 72 套、2022 秋季 80 套、2022 夏季 69 套、2022 春季 79 套、2022 冬季 58 套、2021 秋季 65 套、2021 夏季 46 套、2021 春季 73 套、2021 冬季 67 套、2020 秋季 67 套、2020 夏季 31 套、2020 春季 61 套、2020 冬季 58 套、2019 秋季 67 套、2019 夏季 42 套(38 套 TV、4 套網絡連載)及 2019 春季 34 套 TV 作品(含電視短篇及重編版),共 1,951 個作品詳情、4,328 筆 OP/ED 與 567 個歌曲層 YouTube 直連;其中 1,811 筆已保留官方或正式授權影片 metadata。 +目前 repository 中已審閱的快照為:2026 夏季 70 套、2026 春季 70 套、2026 冬季 66 套、2025 夏季 75 套、2025 春季 82 套、2025 冬季 59 套、2024 秋季 88 套、2024 夏季 68 套、2024 春季 76 套、2024 冬季 75 套、2023 秋季 100 套、2023 夏季 75 套、2023 春季 79 套、2023 冬季 72 套、2022 秋季 80 套、2022 夏季 69 套、2022 春季 79 套、2022 冬季 58 套、2021 秋季 65 套、2021 夏季 46 套、2021 春季 73 套、2021 冬季 67 套、2020 秋季 67 套、2020 夏季 31 套、2020 春季 61 套、2020 冬季 58 套、2019 秋季 67 套、2019 夏季 42 套(38 套 TV、4 套網絡連載)及 2019 春季 35 套 TV 作品(含電視短篇及重編版),共 1,952 個作品詳情、4,330 筆 OP/ED 與 567 個歌曲層 YouTube 直連;其中 1,812 筆已保留官方或正式授權影片 metadata。 每季先以繁中年度動畫表的對應月份建立日曆清單,再與 Annict、Bangumi 及 AniList identifier 取聯集核對。OP/ED 以作品官網和官方 YouTube 為主,並用 AnimeThemes、UZUREA 與 UtaTen 等季度主題曲表交叉確認;季度歌曲索引未收錄的作品,須返回 Netflix、唱片公司、IP 官網、正式播出機構或製作公司等第一方頁面補證。台港正式代理、串流或出版社名稱優先;未有可確認的繁中名稱時保留原文,不宣稱為正式授權譯名。 2019 春、夏季仍在補充,2025 秋季尚未收錄;季度快照代表已核對範圍,不代表歷史作品或歌曲已全部補齊。 -每首已發布歌曲在 `PublicTheme.sources[]` 留下 URL、語言、`first_party`/`cross_check` 角色及核對日期。二十九季快照的 4,328 筆歌曲都必須同時具備兩種角色;這是公開 provenance gate,不是 confidence score。第三方索引將歌曲標為 OP/ED、但第一方頁面只證實插曲、劇中歌、Victory Dance、其他節目用途、舊季度歌曲、其他改編版本或一般「主題歌」時,不把它升格為官方 OP/ED;在既有導航契約中保留的一般主題曲會明示「主題歌(官方分類)」。完整欄位與媒體邊界見 [`DATA_PROVENANCE.md`](./DATA_PROVENANCE.md)。 +每首已發布歌曲在 `PublicTheme.sources[]` 留下 URL、語言、`first_party`/`cross_check` 角色及核對日期。二十九季快照的 4,330 筆歌曲都必須同時具備兩種角色;這是公開 provenance gate,不是 confidence score。第三方索引將歌曲標為 OP/ED、但第一方頁面只證實插曲、劇中歌、Victory Dance、其他節目用途、舊季度歌曲、其他改編版本或一般「主題歌」時,不把它升格為官方 OP/ED;在既有導航契約中保留的一般主題曲會明示「主題歌(官方分類)」。完整欄位與媒體邊界見 [`DATA_PROVENANCE.md`](./DATA_PROVENANCE.md)。 ## 固定來源 diff --git a/docs/PROJECT_PLAN.md b/docs/PROJECT_PLAN.md index be30ed0..da8cd5d 100644 --- a/docs/PROJECT_PLAN.md +++ b/docs/PROJECT_PLAN.md @@ -4,8 +4,8 @@ ## Current product scope -- 2026 夏季 70 套、2026 春季 70 套、2026 冬季 66 套、2025 夏季 75 套、2025 春季 82 套、2025 冬季 59 套、2024 秋季 88 套、2024 夏季 68 套、2024 春季 76 套、2024 冬季 75 套、2023 秋季 100 套、夏季 75 套、春季 79 套、冬季 72 套、2022 秋季 80 套、夏季 69 套、春季 79 套、冬季 58 套、2021 秋季 65 套、夏季 46 套、春季 73 套、冬季 67 套、2020 秋季 67 套、夏季 31 套、春季 61 套、冬季 58 套、2019 秋季 67 套、2019 夏季 42 套及 2019 春季 34 套非成人 TV/網絡連載作品; -- 跨季作品共用詳情頁,共 1,951 個唯一作品及 4,328 筆已審閱 OP/ED; +- 2026 夏季 70 套、2026 春季 70 套、2026 冬季 66 套、2025 夏季 75 套、2025 春季 82 套、2025 冬季 59 套、2024 秋季 88 套、2024 夏季 68 套、2024 春季 76 套、2024 冬季 75 套、2023 秋季 100 套、夏季 75 套、春季 79 套、冬季 72 套、2022 秋季 80 套、夏季 69 套、春季 79 套、冬季 58 套、2021 秋季 65 套、夏季 46 套、春季 73 套、冬季 67 套、2020 秋季 67 套、夏季 31 套、春季 61 套、冬季 58 套、2019 秋季 67 套、2019 夏季 42 套及 2019 春季 35 套非成人 TV/網絡連載作品; +- 跨季作品共用詳情頁,共 1,952 個唯一作品及 4,330 筆已審閱 OP/ED; - 五個固定導覽入口、年代/年份/季度目錄、星期一至星期日及不定期分組、分頁本機搜尋、動畫詳情與同源 static JSON API; - 每個季度、作品及歌曲公開來源、語言、review state 及核對日期;每首歌曲同時具備第一方/交叉核對來源; - 官方/licensed YouTube 導航、明確第三方連線同意、來源歸屬及無圖 fallback; @@ -85,6 +85,7 @@ - **v1.49.1 source**:改善淺色文字、來源與選取狀態的對比,深色 OP/ED 標籤及滑鼠移入按鈕使用適合彩色背景的文字;搜尋提示更清楚,首頁標題可換行以避免平板溢出,全域導覽、歌曲資料與 API 不變,發布證據見對應 GitHub Release。 - **v1.49.2 source**:手機首頁優先呈現介紹、季度/年份及搜尋入口,縮短首屏間距,較大版面保留示意圖;支援原生目錄與無 JavaScript 導覽,資料與 API 不變,發布證據見對應 GitHub Release。 - **v1.50.0 source**:2019 春季增加《灰姑娘女孩劇場 第四季:CLIMAX SEASON》與 3 首月替 ED、3 筆官方試聽 metadata;保留角色合唱、個別演唱者與 CD 日期,遊戲限定短篇、CD 獨唱混音及附加曲不作 TV 歌曲,春季共 34 套作品與 99 筆歌曲;發布證據見對應 GitHub Release。 +- **v1.51.0 source**:2019 春季增加《叛逆性百萬亞瑟王 第二季》、2 筆 OP/ED 及 1 筆官方片頭 MV metadata;區分原演唱組合、改編版與配信/CD 日期,未核對的個別演唱及製作署名維持空白。春季共 35 套作品與 101 筆歌曲;發布證據見對應 GitHub Release。 - 正式網站使用 custom domain;非正式 Cloudflare hostname 不在公開文檔記錄; - 私有 backend、資料庫、crawler、帳戶設定、憑證與內部規則不屬於本公開 repository。 diff --git a/docs/QA_V1_51_2019_SPRING_HANGYAKU.md b/docs/QA_V1_51_2019_SPRING_HANGYAKU.md new file mode 100644 index 0000000..eb667bb --- /dev/null +++ b/docs/QA_V1_51_2019_SPRING_HANGYAKU.md @@ -0,0 +1,27 @@ +# v1.51.0 QA:2019 春季《叛逆性百萬亞瑟王 第二季》 + +來源核對日期:2026-09-08。本切片新增一套 TV 作品、兩筆 OP/ED 及一筆官方影片 metadata。春季共 35 套作品、101 筆歌曲;春、夏季仍在補充,2025 秋季尚未收錄。 + +## 資料與來源 + +- [繁中季度清單](https://youranimes.tw/bangumi/201904)及[個別條目](https://youranimes.tw/animes/4282)交叉核對名稱、季度與完結狀態;[Happinet 官方新聞稿](https://prtimes.jp/main/html/rd/p/000000190.000031422.html)確認第二季於 2019-04-04、TOKYO MX 每週四 22:00 首播。與第一季及未放送特別篇分開,不把社群名稱宣稱為正式地區譯名。 +- [ORESAMA 官方商品頁](https://www.orsm.jp/discography/open-the-worlds/)確認 OP〈OPEN THE WORLDS〉、詞曲編曲署名與 2019-04-24 CD 日期;[配信公告](https://www.orsm.jp/%E3%80%8Copen-the-worlds%E3%80%8D%E5%85%88%E8%A1%8C%E9%85%8D%E4%BF%A1%E6%B1%BA%E5%AE%9A/)分別保留 mora 2019-04-11 及其他平台 2019-04-18 的先行配信日期,沒有推定 TV Size 或轉用公告刊登日。 +- [Bandai Namco Music Live 現行商品頁](https://catalog.bandainamcomusiclive.co.jp/release/68378/)確認 ED〈PEARLY×PARTY〉由パーリィ☆フェアリィ演唱、CD 日期為 2019-05-22。[歌曲索引](https://anison.online/anime/1105)交叉核對兩首用途。ORESAMA 的 Funkapop 改編版、單曲附加曲與插曲不作本季 OP/ED。 +- OP 保留ぽん作詞、小島英也作曲及編曲。ED 的個別演唱者與製作署名尚缺足夠第一方證據,維持空白及「待核對」說明;不由角色配音表、組合成員或另一演唱版本推導。 +- [Lantis 官方 MV](https://www.youtube.com/watch?v=0UmEg8PDV3Y)為 251 秒,核對公開標題、頻道及可嵌入狀態,只保存必要 metadata。ED 沒有新增影片;不可用連結不進入資料。 +- 重新核對 Bandai Namco Music Live 商品目錄及權利頁,只取必要事實與來源連結,不複製頁面、曲目資料集、歌詞或媒體。舊商品連結若只導向目錄首頁,不當作現行個別商品證據。既有作品、歌曲及來源日期不變。 + +## 本機驗收 + +- `npm run catalog:check`:244 項通過。 +- `npm run check -- -- --workers=1`:lint、347 項單元測試、建置、公開邊界檢查及 Cloudflare dry-run 通過;50 項 Playwright 全數通過,未使用重試。dry-run 沒有 runtime bindings。 +- 完整及 production-only npm audit 均為零項已知漏洞;`fast-uri` 維持 3.1.6,八項相關安全回歸測試通過。 +- 四項新資料測試先確認缺少作品時失敗,再驗證身份、原演唱版、缺項、日期、來源、影片、API 讀回及繁中/創作者搜尋。 +- 作品識別與第一方作品來源各有可追溯的獨立證據;來源去重及既有公開資料契約不變。 +- 新 E2E 涵蓋四種寬度的作品/創作者搜尋、歌曲篩選、OP 定位與焦點、三個發行日期、ED「Credits 待確認」及直接可見的來源;以 fixture 驗證影片同意,並核對 390px 無 JavaScript 的年份、季度與作品導覽。 +- 與 v1.50.0 source 比較:1,980 份既有 API 逐位元相同,只更新春季清單並新增作品詳情,沒有移除;建置共 1,996 份 HTML、3,991 份公開產物。 +- Chromium 檢查作品、OP、ED 與春季頁共 20 個畫面,涵蓋 1280、960、390、320px 及 390px 無 JavaScript;沒有水平溢出、頁面錯誤或操作前的 iframe/YouTube 請求。人工檢視桌面 OP、手機作品與 ED 截圖。 + +## 發布界線 + +本機與分支建置結果不代表正式網站已更新。發布時仍須核對合併 SHA、CI、Cloudflare 實際版本與流量,以及 live routes、headers、API 與產物內容。本切片未驗證實體裝置、Safari、Firefox、Lighthouse/Core Web Vitals 或實際 YouTube 播放。 diff --git a/docs/SOURCE_TERMS.md b/docs/SOURCE_TERMS.md index ce6f1d4..5bbee73 100644 --- a/docs/SOURCE_TERMS.md +++ b/docs/SOURCE_TERMS.md @@ -20,11 +20,12 @@ ## 來源矩陣 -Wikidata、オリミュウストア、LiveChart、日本 Columbia、Yamaha 與アニソン・オンライン的下列使用範圍另於 **2026-09-07** 核對;其餘來源保留上述核對日期。 +Wikidata、オリミュウストア、LiveChart、日本 Columbia、Yamaha 與アニソン・オンライン的下列使用範圍另於 **2026-09-07** 核對;Bandai Namco Music Live 的商品目錄及權利頁另於 **2026-09-08** 核對;其餘來源保留上述核對日期。 | 來源 | 目前用途 | 條款/權利重點 | 本專案控制 | | --------------------------------------------------------------------------------------- | ------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | 動畫官網、製作/發行/播出單位、唱片公司、藝人官方渠道 | 最終核對作品、播出、歌曲及 credits | 公開頁面不等於內容重用授權 | 只保存必要事實、短標題及來源 URL;不下載介紹、海報、錄音或影片 | +| [Bandai Namco Music Live](https://catalog.bandainamcomusiclive.co.jp/) | 個別歌曲用途、正式演唱名義與 CD 日期 | [網站條款](https://www.bandainamcomusiclive.co.jp/terms/)及[著作權/肖像權](https://catalog.bandainamcomusiclive.co.jp/low/)保留文章、媒體及資料庫編纂權;公開商品頁不授予整頁或資料集重用權 | 只人工核對必要事實及短識別名稱並保留來源連結;不複製頁面原文、曲目資料集或媒體,不嵌入唱片網站或取得試聽檔案 | | [日本 Columbia](https://columbia.jp/) | 個別 OP/ED 的演唱版本、製作資料、發行日期與官方影片連結 | [Site Policy](https://columbia.jp/sitepolicy/) 保留內容權利,限制未經許可的複製、轉載與頁面嵌入;公開商品頁不授予整份資料或媒體重用權 | 只核對必要事實、短識別名稱與來源 URL;不保存頁面原文、圖片、歌詞、試聽音訊或影片,不嵌入來源網站 | | [Yamaha 樂譜出版](https://www.ymm.co.jp/) | 個別原曲的作詞與作曲署名核對 | [網站政策](https://www.yamaha-meh.co.jp/agreement.html) 保留內容及商標權利,限制未經許可的複製、改作與散布;一般連結可自由建立 | 只核對原曲必要署名並保留來源;不取得樂譜樣本、歌詞、錄音、圖片或頁面原文;樂譜編曲與書籍日期不作動畫原曲編曲及發行日期 | | [アニソン・オンライン](https://anison.online/) | 個別季度、OP/ED 用途與演唱者交叉核對 | [利用規約](https://anison.online/fmenu/terms) 保留內容著作權及商標權,並說明資料及外連沒有正確性保證 | 只人工交叉核對必要識別欄位並保留 URL;不鏡像頁面、媒體或資料集,不建立來源站的使用者書籤 | diff --git a/package-lock.json b/package-lock.json index d92c6ae..d8980cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "anisonary", - "version": "1.50.0", + "version": "1.51.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "anisonary", - "version": "1.50.0", + "version": "1.51.0", "license": "SEE LICENSE IN LICENSING.md", "dependencies": { "@astrojs/sitemap": "^3.7.3", diff --git a/package.json b/package.json index c706467..5978b92 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "anisonary", - "version": "1.50.0", + "version": "1.51.0", "private": true, "license": "SEE LICENSE IN LICENSING.md", "type": "module", diff --git a/src/data/curated-data.ts b/src/data/curated-data.ts index 1ea800d..7d05756 100644 --- a/src/data/curated-data.ts +++ b/src/data/curated-data.ts @@ -4539,6 +4539,10 @@ const themeVerifiedAtOverrides: Record = { }; const animeOfficialSourceOverrides: Record = { + "catalog-hangyakusei-million-arthur-2-2019": { + label: "Lantis 官方影片:第二季作品與 OP 名義", + url: "https://www.youtube.com/watch?v=0UmEg8PDV3Y" + }, 111314: { label: "VIZ 官方授權作品頁:動畫作品資料", url: "https://www.viz.com/uzumaki" diff --git a/src/data/curated-season-registry.ts b/src/data/curated-season-registry.ts index c32d1ac..17dfe80 100644 --- a/src/data/curated-season-registry.ts +++ b/src/data/curated-season-registry.ts @@ -452,7 +452,7 @@ export const curatedSeasonRegistry = validateCuratedSeasonRegistry([ quarter: "spring", titleZhHant: "春季動畫", titleJa: "2019年春アニメ", - coverageNote: "本季正在補充,目前收錄 34 套 TV 作品(含電視短篇及重編版)。其餘作品、跨季延續及特殊歌曲版本仍待核對。", + coverageNote: "本季正在補充,目前收錄 35 套 TV 作品(含電視短篇及重編版)。其餘作品、跨季延續及特殊歌曲版本仍待核對。", seeds: curated2019SpringSeeds, animeIds: curated2019SpringAnimeIds } diff --git a/src/data/curated-seeds/2019/spring.ts b/src/data/curated-seeds/2019/spring.ts index 52359cf..240e915 100644 --- a/src/data/curated-seeds/2019/spring.ts +++ b/src/data/curated-seeds/2019/spring.ts @@ -1698,6 +1698,44 @@ const strikeWitches501EndingRows = [ ] as const; const independentSpringSeeds: NativeCuratedAnimeSeed[] = [{ + id: "catalog-hangyakusei-million-arthur-2-2019", + slug: "hangyakusei-million-arthur-2-2019", + titleJa: "叛逆性ミリオンアーサー 第2シーズン", + titleZhHant: "叛逆性百萬亞瑟王 第二季", + seasonIds: ["2019-spring"], + startDate: "2019-04-04", + editorialWeekday: 4, + broadcastTimeJst: "22:00", + broadcastLabel: "TOKYO MX 每週四 22:00(日本時間;第二季 TV 版)", + status: "finished", + verifiedAt: "2026-09-08", + identifierSource: { + label: "Happinet 官方新聞稿:第二季作品識別、首播日期與時段", + url: "https://prtimes.jp/main/html/rd/p/000000190.000031422.html", + language: "ja" + }, + wikipediaUrl: "https://youranimes.tw/bangumi/201904", + sourceReferenceUrls: ["https://youranimes.tw/animes/4282"], + themes: [{ + type: "OP", sequence: 1, + titleJa: "OPEN THE WORLDS", + artistDisplayName: "ORESAMA", + releaseDate: "2019-04-24", + versionLabel: "第二季 TV OP/CD:2019-04-24;mora 先行配信:2019-04-11,其他平台:2019-04-18", + credits: [ + { name: "ぽん", role: "lyrics" }, + { name: "小島英也", role: "composition" }, + { name: "小島英也", role: "arrangement" } + ] + }, { + type: "ED", sequence: 1, + titleJa: "PEARLY×PARTY", + artistDisplayName: "パーリィ☆フェアリィ", + releaseDate: "2019-05-22", + versionLabel: "第二季 TV ED/原演唱組合單曲版;個別演唱及製作署名待核對", + credits: [] + }] +}, { id: "catalog-cinderella-girls-climax-2019", slug: "cinderella-girls-climax-2019", titleJa: "アイドルマスター シンデレラガールズ劇場 CLIMAX SEASON", diff --git a/src/data/curated-theme-sources/2019/spring.ts b/src/data/curated-theme-sources/2019/spring.ts index bb03fbe..367148e 100644 --- a/src/data/curated-theme-sources/2019/spring.ts +++ b/src/data/curated-theme-sources/2019/spring.ts @@ -3,6 +3,14 @@ import { getCuratedAnimeKey, getCuratedThemeKey } from "@/data/curated-seeds/ide import type { CuratedThemeSourceOverrideMap, CuratedThemeSourceSeed } from "@/data/curated-theme-sources/types"; const firstPartyUrlsByTheme: Readonly> = { + "catalog-hangyakusei-million-arthur-2-2019:OP:1": [ + "https://www.orsm.jp/discography/open-the-worlds/", + "https://www.orsm.jp/%E3%80%8Copen-the-worlds%E3%80%8D%E5%85%88%E8%A1%8C%E9%85%8D%E4%BF%A1%E6%B1%BA%E5%AE%9A/", + "https://www.youtube.com/watch?v=0UmEg8PDV3Y" + ], + "catalog-hangyakusei-million-arthur-2-2019:ED:1": [ + "https://catalog.bandainamcomusiclive.co.jp/release/68378/" + ], "catalog-cinderella-girls-climax-2019:ED:1": [ "https://columbia.jp/idolmaster/imasnews/190405.html", "https://www.youtube.com/watch?v=QkO1DC96kIM" @@ -273,6 +281,10 @@ const firstPartyUrlsByTheme: Readonly> = { }; const sourceLabelsByUrl: Readonly> = { + "https://www.orsm.jp/discography/open-the-worlds/": "ORESAMA 官方:第二季 OP、詞曲編曲署名與 CD 日期", + "https://www.orsm.jp/%E3%80%8Copen-the-worlds%E3%80%8D%E5%85%88%E8%A1%8C%E9%85%8D%E4%BF%A1%E6%B1%BA%E5%AE%9A/": "ORESAMA 官方:mora 及其他平台先行配信日期", + "https://www.youtube.com/watch?v=0UmEg8PDV3Y": "Lantis:第二季 OP 官方完整 MV、演唱者及製作署名", + "https://catalog.bandainamcomusiclive.co.jp/release/68378/": "Bandai Namco Music Live:第二季 ED、原演唱組合與 CD 日期", "https://columbia.jp/idolmaster/imasnews/190405.html": "日本 Columbia:TV 4 月 ED、演唱及製作署名、CD 日期與官方試聽", "https://www.youtube.com/watch?v=QkO1DC96kIM": "日本 Columbia:4 月 ED 官方試聽短版與演唱者", "https://columbia.jp/idolmaster/imasnews/190510.html": "日本 Columbia:TV 5 月 ED、演唱及製作署名、CD 日期與官方試聽", @@ -406,6 +418,12 @@ const sourceLabelsByUrl: Readonly> = { }; const crossCheckSourcesByAnime: Readonly> = { + "catalog-hangyakusei-million-arthur-2-2019": { + label: "アニソン・オンライン:第二季 OP/ED 與演唱組合交叉核對", + url: "https://anison.online/anime/1105", + language: "ja", + role: "cross_check" + }, "catalog-cinderella-girls-climax-2019": { label: "アニソン・オンライン:2019 春季、三首 ED 用途與合唱名義交叉核對", url: "https://anison.online/anime/1069", diff --git a/src/data/curated-theme-videos/2019/spring.ts b/src/data/curated-theme-videos/2019/spring.ts index 67de644..0dfe5a6 100644 --- a/src/data/curated-theme-videos/2019/spring.ts +++ b/src/data/curated-theme-videos/2019/spring.ts @@ -1,6 +1,14 @@ import type { CuratedThemeVideoOverrideMap } from "@/data/curated-theme-videos/types"; export const curated2019SpringThemeVideos = { + "catalog-hangyakusei-million-arthur-2-2019:OP:1": [{ + youtubeVideoId: "0UmEg8PDV3Y", + title: "ORESAMA / OPEN THE WORLDS -MUSIC VIDEO- (TVアニメ『叛逆性ミリオンアーサー』第2シーズンOP主題歌)", + type: "full_music_video", + channelName: "Lantis Channel", + officialStatus: "official", + embeddable: true + }], "catalog-cinderella-girls-climax-2019:ED:1": [{ youtubeVideoId: "QkO1DC96kIM", title: "【アイドルマスター】「きゅん・きゅん・まっくす」(歌:一ノ瀬志希、乙倉悠貴、椎名法子、前川みく、棟方愛海)", diff --git a/tests/e2e/phase1.spec.ts b/tests/e2e/phase1.spec.ts index de5e4c7..e4bab09 100644 --- a/tests/e2e/phase1.spec.ts +++ b/tests/e2e/phase1.spec.ts @@ -460,7 +460,7 @@ test("cross-season search stays local and matches anime, songs, and artists", as await page.goto("/search/"); await expect(page.getByRole("heading", { name: "跨季度搜尋" })).toBeVisible(); - await expect(page.locator("[data-catalog-anime-count]")).toHaveText("1951"); + await expect(page.locator("[data-catalog-anime-count]")).toHaveText("1952"); const search = page.getByRole("searchbox", { name: "搜尋動畫、歌曲或創作者" }); await search.fill("MYTH & ROID"); @@ -500,7 +500,7 @@ test("cross-season search stays local and matches anime, songs, and artists", as await expect(page.locator("[data-catalog-anime-count]")).toHaveText("0"); await search.press("Escape"); - await expect(page.locator("[data-catalog-anime-count]")).toHaveText("1951"); + await expect(page.locator("[data-catalog-anime-count]")).toHaveText("1952"); expect(externalRequests).toEqual([]); }); @@ -908,7 +908,7 @@ test("catalogue navigation stays compact and drills down through published years await expect(navigation.getByRole("link", { name: /動畫目錄/ })).toHaveAttribute("aria-current", "true"); await expect(page.getByRole("navigation", { name: "2025 年季度導覽" }).getByRole("link", { name: "春季" })).toHaveAttribute("aria-current", "page"); await expect(page.getByRole("navigation", { name: "所在位置" }).getByRole("link", { name: "2025", exact: true })).toHaveAttribute("href", "/catalog/2025/"); - await expect(page.getByLabel("季度資料狀態")).toContainText("已發布 29 個季度、1,951 個作品頁與 4,328 首 OP/ED"); + await expect(page.getByLabel("季度資料狀態")).toContainText("已發布 29 個季度、1,952 個作品頁與 4,330 首 OP/ED"); await page.setViewportSize({ width: 390, height: 844 }); await page.reload(); @@ -1245,10 +1245,10 @@ test("2019 spring browsing and creator search reach the correct special ending o for (const width of [1280, 390]) { await page.setViewportSize({ width, height: 844 }); await page.goto("/catalog/2019/"); - await page.getByRole("link", { name: /春季動畫.*34 套動畫/ }).click(); + await page.getByRole("link", { name: /春季動畫.*35 套動畫/ }).click(); await expect(page.getByRole("heading", { name: "2019 春季動畫" })).toBeVisible(); - await expect(page.getByText("本季正在補充,目前收錄 34 套 TV 作品(含電視短篇及重編版)。其餘作品、跨季延續及特殊歌曲版本仍待核對。", { exact: true })).toBeVisible(); - await expect(page.locator("[data-anime-card]")).toHaveCount(34); + await expect(page.getByText("本季正在補充,目前收錄 35 套 TV 作品(含電視短篇及重編版)。其餘作品、跨季延續及特殊歌曲版本仍待核對。", { exact: true })).toBeVisible(); + await expect(page.locator("[data-anime-card]")).toHaveCount(35); await expect(page.locator("[data-anime-card] img")).toHaveCount(0); expect(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth)).toBe(true); @@ -1681,6 +1681,71 @@ test("anime details keep full-width poster-free headings and readable metadata a } }); +test("Hangyaku second season preserves original song versions, missing credits and responsive source navigation", async ({ page, browser, request }) => { + test.setTimeout(60_000); + const slug = "hangyakusei-million-arthur-2-2019"; + const mediaRequests: string[] = []; + page.on("request", (item) => { + if (/youtube|ytimg|googlevideo/.test(new URL(item.url()).hostname)) mediaRequests.push(item.url()); + }); + const response = await request.get(`/api/v1/anime/${slug}.json`); + expect(response.status()).toBe(200); + const detail = await response.json(); + expect(detail.id).toBe("catalog-hangyakusei-million-arthur-2-2019"); + expect(detail.themes.map(({ titleJa }: { titleJa: string }) => titleJa)).toEqual(["OPEN THE WORLDS", "PEARLY×PARTY"]); + expect(detail.themes[1].credits).toEqual([]); + for (const width of [1280, 960, 390, 320]) { + await page.setViewportSize({ width, height: 844 }); + await page.goto("/search/", { waitUntil: "domcontentloaded" }); + await page.getByRole("searchbox", { name: "搜尋動畫、歌曲或創作者" }).fill("叛逆性百萬亞瑟王"); + await page.getByLabel("年份", { exact: true }).selectOption("2019"); + await page.getByLabel("季度", { exact: true }).selectOption("spring"); + await expect(page.locator("[data-catalog-result]")).toHaveCount(1); + await page.getByRole("link", { name: /叛逆性ミリオンアーサー 第2シーズン/ }).first().click(); + await expect(page).toHaveURL(new RegExp(`/anime/${slug}/$`)); + await expect(page.locator(".anime-hero__zh")).toHaveText("叛逆性百萬亞瑟王 第二季"); + await expect(page.locator(".anime-hero__romaji")).toHaveCount(0); + await expect(page.locator(".theme-card")).toHaveCount(2); + await expect(page.locator(".theme-card time")).toHaveText(["2019-04-24", "2019-05-22"]); + const ending = page.locator(`#theme-${slug}-ed-1`); + await expect(ending).toContainText("個別演唱及製作署名待核對"); + await expect(ending.locator(".theme-card__credits dd")).toHaveText("待確認"); + await expect(ending.getByRole("button", { name: /載入 YouTube 影片/ })).toHaveCount(0); + await expect(ending.locator("details")).toHaveCount(0); + await expect(ending.locator('a[href="https://catalog.bandainamcomusiclive.co.jp/release/68378/"]')).toBeVisible(); + await page.getByRole("link", { name: "搜尋「小島英也」的歌曲", exact: true }).first().focus(); + await page.keyboard.press("Enter"); + await expect(page.getByRole("searchbox", { name: "搜尋動畫、歌曲或創作者" })).toHaveValue("小島英也"); + for (const [label, value] of [["年份", "2019"], ["季度", "spring"], ["歌曲用途", "OP"]]) await page.getByLabel(label!, { exact: true }).selectOption(value!); + await expect(page.locator("[data-catalog-result]")).toHaveCount(1); + await page.getByRole("link", { name: "OPEN THE WORLDS", exact: true }).click(); + const opening = page.locator(`#theme-${slug}-op-1`); + await expect(opening).toBeFocused(); + await expect(opening).toContainText("mora 先行配信:2019-04-11"); + await expect(page.locator("iframe")).toHaveCount(0); + expect(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth)).toBe(true); + } + expect(mediaRequests).toEqual([]); + await page.route("https://www.youtube-nocookie.com/**", (route) => route.fulfill({ contentType: "text/html", body: "Official opening fixture" })); + await page.getByRole("button", { name: /載入 YouTube 影片/ }).focus(); + await page.keyboard.press("Enter"); + await expect(page.locator("iframe")).toHaveCount(1); + await expect(page.locator("iframe")).toHaveAttribute("src", /youtube-nocookie\.com\/embed\/0UmEg8PDV3Y/); + const context = await browser.newContext({ javaScriptEnabled: false, viewport: { width: 390, height: 844 } }); + try { + const nativePage = await context.newPage(); + await nativePage.goto(`${e2eOrigin}/catalog/2019/`, { waitUntil: "domcontentloaded" }); + await nativePage.getByRole("link", { name: /春季動畫.*35 套動畫/ }).click(); + await nativePage.getByRole("link", { name: /叛逆性ミリオンアーサー 第2シーズン/ }).first().click(); + await expect(nativePage.locator(".theme-card")).toHaveCount(2); + await expect(nativePage.locator(`#theme-${slug}-ed-1 a[href="https://catalog.bandainamcomusiclive.co.jp/release/68378/"]`)).toBeVisible(); + await expect(nativePage.locator("iframe")).toHaveCount(0); + expect(await nativePage.evaluate(() => document.documentElement.scrollWidth <= innerWidth)).toBe(true); + } finally { + await context.close(); + } +}); + test("CLIMAX SEASON search preserves monthly ensemble endings, individual singers and official short previews", async ({ page, browser, request }) => { test.setTimeout(60_000); const slug = "cinderella-girls-climax-2019"; @@ -1739,7 +1804,7 @@ test("CLIMAX SEASON search preserves monthly ensemble endings, individual singer try { const nativePage = await context.newPage(); await nativePage.goto(`${e2eOrigin}/catalog/2019/`, { waitUntil: "domcontentloaded" }); - await nativePage.getByRole("link", { name: /春季動畫.*34 套動畫/ }).click(); + await nativePage.getByRole("link", { name: /春季動畫.*35 套動畫/ }).click(); await nativePage.getByRole("link", { name: /アイドルマスター シンデレラガールズ劇場 CLIMAX SEASON/ }).first().click(); await expect(nativePage.locator(".theme-card")).toHaveCount(3); await nativePage.locator(`#theme-${slug}-ed-3 details summary`).focus(); @@ -1808,7 +1873,7 @@ test("Yo-kai Watch search separates the 2019 series and keeps shared writers and try { const nativePage = await context.newPage(); await nativePage.goto(`${e2eOrigin}/catalog/2019/`); - await nativePage.getByRole("link", { name: /春季動畫.*34 套動畫/ }).click(); + await nativePage.getByRole("link", { name: /春季動畫.*35 套動畫/ }).click(); await nativePage.getByRole("link", { name: /妖怪ウォッチ!/ }).first().click(); const sources = nativePage.locator(`#theme-${slug}-ed-1 details`); await sources.locator("summary").focus(); @@ -1865,7 +1930,7 @@ test("Bakugan Japanese theme search preserves shared credits and separates the l try { const nativePage = await context.newPage(); await nativePage.goto(`${e2eOrigin}/catalog/2019/`); - await nativePage.getByRole("link", { name: /春季動畫.*34 套動畫/ }).click(); + await nativePage.getByRole("link", { name: /春季動畫.*35 套動畫/ }).click(); await nativePage.getByRole("link", { name: /爆丸バトルプラネット/ }).first().click(); await expect(nativePage).toHaveURL(new RegExp(`/anime/${slug}/$`)); await expect(nativePage.locator(".theme-card")).toHaveCount(3); @@ -2006,7 +2071,7 @@ test("501 Takeoff creator search reaches the correct solo ending and keeps the g try { const nativePage = await context.newPage(); await nativePage.goto(`${e2eOrigin}/catalog/2019/`); - await nativePage.getByRole("link", { name: /春季動畫.*34 套動畫/ }).click(); + await nativePage.getByRole("link", { name: /春季動畫.*35 套動畫/ }).click(); await nativePage.getByRole("link", { name: /ストライクウィッチーズ 501部隊発進しますっ/ }).first().click(); await expect(nativePage).toHaveURL(new RegExp(`/anime/${slug}/$`)); await expect(nativePage.locator(".theme-card")).toHaveCount(13); @@ -2068,7 +2133,7 @@ test("Gonjiro search preserves independent identity, co-composers and the licens const context = await browser.newContext({ javaScriptEnabled: false, viewport: { width: 390, height: 844 } }); const nativePage = await context.newPage(); await nativePage.goto(`${e2eOrigin}/catalog/2019/`); - await nativePage.getByRole("link", { name: /春季動畫.*34 套動畫/ }).click(); + await nativePage.getByRole("link", { name: /春季動畫.*35 套動畫/ }).click(); await nativePage.getByRole("link", { name: /けだまのゴンじろー/ }).first().click(); await expect(nativePage).toHaveURL(/\/anime\/gonjiro-2019\/$/); await expect(nativePage.locator(".theme-card")).toHaveCount(2); @@ -2366,8 +2431,8 @@ test("weekday navigation follows populated groups and remains useful after filte await page.getByRole("checkbox", { name: "有正版影片" }).check(); await expect(navigation.getByRole("link")).toHaveText(["週一", "週二", "週三", "週四", "週五", "週六", "週日"]); - await expect(page.locator("[data-result-count]")).toHaveText("23"); - const expectedCounts = [3, 5, 1, 1, 4, 4, 5]; + await expect(page.locator("[data-result-count]")).toHaveText("24"); + const expectedCounts = [3, 5, 1, 2, 4, 4, 5]; for (const [index, link] of (await navigation.getByRole("link").all()).entries()) { const target = page.locator((await link.getAttribute("href"))!); await expect(target).toBeVisible(); @@ -2378,7 +2443,7 @@ test("weekday navigation follows populated groups and remains useful after filte await expect(navigation.getByRole("link", { name: "週六" })).toHaveAttribute("aria-current", "location"); await page.getByRole("button", { name: "清除篩選" }).click(); await expect(navigation.getByRole("link")).toHaveText(["週一", "週二", "週三", "週四", "週五", "週六", "週日"]); - await expect(page.locator("[data-result-count]")).toHaveText("34"); + await expect(page.locator("[data-result-count]")).toHaveText("35"); await expect(page.getByRole("checkbox", { name: "有 OP" })).toBeFocused(); expect(await page.evaluate(() => document.documentElement.scrollWidth <= innerWidth)).toBe(true); } @@ -2401,7 +2466,7 @@ test("weekday navigation follows populated groups and remains useful after filte await expect(nativePage.getByRole("navigation", { name: "跳到播出星期" }).getByRole("link")) .toHaveText(["週一", "週二", "週三", "週四", "週五", "週六", "週日"]); await expect(nativePage.locator("[data-weekday-section]")).toHaveCount(7); - await expect(nativePage.locator("[data-anime-card]")).toHaveCount(34); + await expect(nativePage.locator("[data-anime-card]")).toHaveCount(35); await nativePage.getByRole("link", { name: "週五", exact: true }).click(); await expect(nativePage).toHaveURL(/#weekday-5$/); expect(await nativePage.evaluate(() => document.documentElement.scrollWidth <= innerWidth)).toBe(true); diff --git a/tests/unit/api-smoke.test.ts b/tests/unit/api-smoke.test.ts index 5add376..668612f 100644 --- a/tests/unit/api-smoke.test.ts +++ b/tests/unit/api-smoke.test.ts @@ -16,7 +16,7 @@ describe("production API smoke gate", () => { it("accepts the complete reviewed catalogue and its not-found behavior", async () => { await expect(smokePublicApi(new CuratedProvider())).resolves.toEqual({ seasonCount: 29, - animeCount: 1951 + animeCount: 1952 }); }); diff --git a/tests/unit/catalog-navigation.test.ts b/tests/unit/catalog-navigation.test.ts index 5d12d9d..c229856 100644 --- a/tests/unit/catalog-navigation.test.ts +++ b/tests/unit/catalog-navigation.test.ts @@ -27,7 +27,7 @@ describe("catalogue navigation and search", () => { expect(results.some(({ anime }) => anime.slug === "re-zero-season-4")).toBe(true); } expect(searchCatalog(index, { ...defaults, year: "2025", quarter: "fall" })).toEqual([]); - expect(searchCatalog(index, defaults)).toHaveLength(1951); + expect(searchCatalog(index, defaults)).toHaveLength(1952); }); it("combines multilingual queries with exact song, creator, and OP/ED filters", () => { diff --git a/tests/unit/curated-2019-spring.test.ts b/tests/unit/curated-2019-spring.test.ts index cf5c9c6..9319897 100644 --- a/tests/unit/curated-2019-spring.test.ts +++ b/tests/unit/curated-2019-spring.test.ts @@ -10,6 +10,70 @@ const spring = curatedSeasonDetails.find(({ id }) => id === "2019-spring")!; const anime = (id: number) => curatedAnimeDetails.find((item) => item.id === `curated-${id}`)!; describe("2019 spring reviewed TV catalogue", () => { + it("identifies Hangyaku's second TV season without importing the first season or unaired special", async () => { + const seed = curated2019SpringSeeds.find(({ id }) => id === "catalog-hangyakusei-million-arthur-2-2019")!; + expect(seed).toMatchObject({ startDate: "2019-04-04", editorialWeekday: 4, broadcastTimeJst: "22:00", seasonIds: ["2019-spring"] }); + const detail = curatedAnimeDetails.find(({ id }) => id === seed.id)!; + expect(detail).toMatchObject({ slug: "hangyakusei-million-arthur-2-2019", titleJa: "叛逆性ミリオンアーサー 第2シーズン", titleZhHant: "叛逆性百萬亞瑟王 第二季", status: "finished" }); + for (const omitted of ["anilistId", "anilistUrl", "titleRomaji", "posterUrl", "bannerUrl"]) { + expect(seed).not.toHaveProperty(omitted); + expect(detail).not.toHaveProperty(omitted); + } + expect(detail.sources).toContainEqual(expect.objectContaining({ url: "https://prtimes.jp/main/html/rd/p/000000190.000031422.html", role: "identifier", language: "ja" })); + expect(detail.sources).toContainEqual(expect.objectContaining({ url: "https://youranimes.tw/bangumi/201904", role: "localized_cross_check", language: "zh-Hant" })); + expect(detail.sources.some(({ url }) => url.includes("hangyakusei-anime.com"))).toBe(false); + const provider = new ApiProvider("https://anisonary.k-y.cc/api/v1", { + fetch: vi.fn().mockResolvedValue(new Response(JSON.stringify(detail), { headers: { "Content-Type": "application/json" } })) + }); + expect(await provider.getAnime(detail.slug)).toEqual(detail); + }); + + it("keeps Hangyaku's original ending separate from ORESAMA's Funkapop cover and unverified credits", () => { + const themes = curatedAnimeDetails.find(({ id }) => id === "catalog-hangyakusei-million-arthur-2-2019")!.themes; + expect(themes.map(({ type, sequence, titleJa, artistDisplayName, releaseDate }) => [type, sequence, titleJa, artistDisplayName, releaseDate])).toEqual([ + ["OP", 1, "OPEN THE WORLDS", "ORESAMA", "2019-04-24"], + ["ED", 1, "PEARLY×PARTY", "パーリィ☆フェアリィ", "2019-05-22"] + ]); + expect(themes[0]?.versionLabel).toBe("第二季 TV OP/CD:2019-04-24;mora 先行配信:2019-04-11,其他平台:2019-04-18"); + expect(themes[0]?.credits).toEqual([ + { name: "ぽん", role: "lyrics" }, { name: "小島英也", role: "composition" }, { name: "小島英也", role: "arrangement" } + ]); + expect(themes[1]?.versionLabel).toBe("第二季 TV ED/原演唱組合單曲版;個別演唱及製作署名待核對"); + expect(themes[1]?.credits).toEqual([]); + expect(themes.some(({ titleJa }) => /Funkapop|Distorted Fairy|ハイライト|KI-te MI-te/.test(titleJa))).toBe(false); + }); + + it("retains Hangyaku's current publisher page and official full opening video without unavailable ending media", () => { + const themes = curatedAnimeDetails.find(({ id }) => id === "catalog-hangyakusei-million-arthur-2-2019")!.themes; + for (const theme of themes) { + expect(theme.lastVerifiedAt).toBe("2026-09-08"); + expect(theme.sources.every(({ verifiedAt }) => verifiedAt === "2026-09-08")).toBe(true); + expect(theme.sources).toContainEqual(expect.objectContaining({ url: "https://anison.online/anime/1105", role: "cross_check", language: "ja" })); + } + expect(themes[0]?.sources).toContainEqual(expect.objectContaining({ url: "https://www.orsm.jp/discography/open-the-worlds/", role: "first_party" })); + expect(themes[1]?.sources).toContainEqual(expect.objectContaining({ url: "https://catalog.bandainamcomusiclive.co.jp/release/68378/", role: "first_party" })); + expect(themes[0]?.videos).toHaveLength(1); + expect(themes[0]?.videos[0]).toMatchObject({ youtubeVideoId: "0UmEg8PDV3Y", type: "full_music_video", channelName: "Lantis Channel", officialStatus: "official", embeddable: true }); + expect(themes[1]?.videos).toEqual([]); + }); + + it("finds Hangyaku's reviewed titles and writers without assigning cover singers or inferred ending credits", async () => { + const index = buildCatalogSearchIndex((await loadCatalogSearchData(new CuratedProvider(), true)).entries); + const filters = { year: "2019", quarter: "spring", type: "all" } as const; + const slug = "hangyakusei-million-arthur-2-2019"; + const title = searchCatalog(index, { ...filters, query: "叛逆性百萬亞瑟王", scope: "anime" }); + expect(title.map(({ anime: item }) => item.slug)).toEqual([slug]); + for (const [query, type, expected] of [ + ["ORESAMA", "OP", ["OPEN THE WORLDS"]], ["ORESAMA", "ED", []], + ["小島英也", "OP", ["OPEN THE WORLDS"]], ["小島英也", "ED", []], + ["パーリィ☆フェアリィ", "ED", ["PEARLY×PARTY"]] + ] as const) { + const result = searchCatalog(index, { ...filters, query, type, scope: "creators" }).find(({ anime: item }) => item.slug === slug); + expect(result?.themes.map(({ titleJa }) => titleJa) ?? []).toEqual(expected); + } + expect(searchCatalog(index, { ...filters, query: "PEARLY×PARTY -Funkapop ver.-", scope: "songs" })).toEqual([]); + }); + it("identifies CLIMAX SEASON as the 2019 TV quarter separately from Extra Stage and game-only shorts", async () => { const seed = curated2019SpringSeeds.find(({ id }) => id === "catalog-cinderella-girls-climax-2019")!; expect(seed).toMatchObject({ startDate: "2019-04-02", editorialWeekday: 2, broadcastTimeJst: "21:54", seasonIds: ["2019-spring"] }); @@ -819,9 +883,9 @@ describe("2019 spring reviewed TV catalogue", () => { }); it("publishes a partial quarter with reviewed identity and song evidence, without unverified artwork", () => { - expect(spring.anime).toHaveLength(34); + expect(spring.anime).toHaveLength(35); expect(spring.coverageNote).toContain("跨季延續及特殊歌曲版本仍待核對"); - expect(curated2019SpringSeeds.flatMap(({ themes }) => themes)).toHaveLength(99); + expect(curated2019SpringSeeds.flatMap(({ themes }) => themes)).toHaveLength(101); expect(curatedSeasonDetails.some(({ id }) => id === "2025-fall")).toBe(false); for (const seed of curated2019SpringSeeds) { expect(seed.seasonIds).toEqual(["2019-spring"]); diff --git a/tests/unit/curated-catalog.test.ts b/tests/unit/curated-catalog.test.ts index a8d3a5d..0b796a3 100644 --- a/tests/unit/curated-catalog.test.ts +++ b/tests/unit/curated-catalog.test.ts @@ -38,7 +38,7 @@ describe("curated public catalogue", () => { "2019-spring" ]); expect(curatedSeasonDetails).toHaveLength(29); - expect(curatedSeasonDetails.map((season) => season.anime.length)).toEqual([70, 70, 66, 75, 82, 59, 88, 68, 76, 75, 100, 75, 79, 72, 80, 69, 79, 58, 65, 46, 73, 67, 67, 31, 61, 58, 67, 42, 34]); + expect(curatedSeasonDetails.map((season) => season.anime.length)).toEqual([70, 70, 66, 75, 82, 59, 88, 68, 76, 75, 100, 75, 79, 72, 80, 69, 79, 58, 65, 46, 73, 67, 67, 31, 61, 58, 67, 42, 35]); expect(curatedSeasonDetails.map((season) => [season.id, season.reviewState, season.verifiedAt])).toEqual([ ["2026-summer", "reviewed", "2026-08-02"], ["2026-spring", "reviewed", "2026-08-02"], @@ -70,10 +70,10 @@ describe("curated public catalogue", () => { ["2019-summer", "reviewed", "2026-09-07"], ["2019-spring", "reviewed", "2026-09-08"] ]); - expect(curatedAnimeDetails).toHaveLength(1951); - expect(curatedAnimeDetails.filter((anime) => anime.themes.length > 0)).toHaveLength(1587); - expect(curatedAnimeDetails.flatMap((anime) => anime.themes)).toHaveLength(4328); - expect(curatedAnimeDetails.filter((anime) => anime.themeAvailability === "documented")).toHaveLength(1587); + expect(curatedAnimeDetails).toHaveLength(1952); + expect(curatedAnimeDetails.filter((anime) => anime.themes.length > 0)).toHaveLength(1588); + expect(curatedAnimeDetails.flatMap((anime) => anime.themes)).toHaveLength(4330); + expect(curatedAnimeDetails.filter((anime) => anime.themeAvailability === "documented")).toHaveLength(1588); expect(curatedAnimeDetails.filter((anime) => anime.themeAvailability === "not_used")).toHaveLength(2); expect(curatedAnimeDetails.filter((anime) => anime.themeAvailability === "not_announced")).toHaveLength(362); const youtubeLinks = curatedAnimeDetails @@ -2178,7 +2178,7 @@ describe("curated public catalogue", () => { } for (const item of anime.themes) { - const expectedVerifiedAt = anime.id === "catalog-cinderella-girls-climax-2019" + const expectedVerifiedAt = ["catalog-cinderella-girls-climax-2019", "catalog-hangyakusei-million-arthur-2-2019"].includes(anime.id) ? "2026-09-08" : anime.id === "curated-111048" || curatedSeasonDetails.find(({ id }) => id === "2019-summer")?.anime.some(({ id }) => id === anime.id) diff --git a/tests/unit/curated-season-registry.test.ts b/tests/unit/curated-season-registry.test.ts index b663f68..f9955a7 100644 --- a/tests/unit/curated-season-registry.test.ts +++ b/tests/unit/curated-season-registry.test.ts @@ -40,7 +40,7 @@ describe("curated season registry", () => { ]); const ownedSeeds = curatedSeasonRegistry.flatMap(({ seeds }) => seeds); - expect(ownedSeeds).toHaveLength(1951); + expect(ownedSeeds).toHaveLength(1952); expect(new Set(ownedSeeds.map(getCuratedAnimeKey)).size).toBe(ownedSeeds.length); for (const entry of curatedSeasonRegistry) { diff --git a/tests/unit/curated-theme-source-registry.test.ts b/tests/unit/curated-theme-source-registry.test.ts index c610487..2170dc3 100644 --- a/tests/unit/curated-theme-source-registry.test.ts +++ b/tests/unit/curated-theme-source-registry.test.ts @@ -70,11 +70,11 @@ describe("curated theme source registry", () => { 180, 161, 103, - 99 + 101 ]); const keys = curatedThemeSourceRegistry.flatMap(({ overrides }) => Object.keys(overrides)); - expect(keys).toHaveLength(2066); + expect(keys).toHaveLength(2068); expect(new Set(keys).size).toBe(keys.length); expect(Object.keys(curatedThemeSourceOverrides)).toHaveLength(keys.length); }); diff --git a/tests/unit/curated-theme-video-registry.test.ts b/tests/unit/curated-theme-video-registry.test.ts index a3b8fa4..242fe98 100644 --- a/tests/unit/curated-theme-video-registry.test.ts +++ b/tests/unit/curated-theme-video-registry.test.ts @@ -48,15 +48,15 @@ describe("curated theme video registry", () => { ), ).toEqual([ 4, 10, 44, 178, 79, 48, 128, 154, 134, 125, 2, 4, 6, 7, 27, 28, 26, 26, - 28, 65, 66, 53, 62, 52, 102, 43, 62, 11, 52, + 28, 65, 66, 53, 62, 52, 102, 43, 62, 11, 53, ]); const entries = curatedThemeVideoRegistry.flatMap(({ overrides }) => Object.entries(overrides), ); - expect(entries).toHaveLength(1626); + expect(entries).toHaveLength(1627); expect(new Set(entries.map(([key]) => key)).size).toBe(entries.length); - expect(entries.flatMap(([, videos]) => videos)).toHaveLength(1811); + expect(entries.flatMap(([, videos]) => videos)).toHaveLength(1812); expect(Object.keys(curatedThemeVideoOverrides)).toHaveLength( entries.length, ); diff --git a/tests/unit/page-data.test.ts b/tests/unit/page-data.test.ts index f898cdd..844735c 100644 --- a/tests/unit/page-data.test.ts +++ b/tests/unit/page-data.test.ts @@ -65,9 +65,9 @@ describe("catalogue search data states", () => { expect(result.status).toBe("ready"); if (result.status !== "ready") throw new Error("Expected ready catalogue search data"); - expect(result.entries).toHaveLength(1951); - expect(new Set(result.entries.map(({ anime }) => anime.slug)).size).toBe(1951); - expect(result.entries.filter(({ anime }) => anime.themes.length > 0)).toHaveLength(1587); + expect(result.entries).toHaveLength(1952); + expect(new Set(result.entries.map(({ anime }) => anime.slug)).size).toBe(1952); + expect(result.entries.filter(({ anime }) => anime.themes.length > 0)).toHaveLength(1588); }); it("returns a safe public error state without exposing provider details", async () => {