Skip to content

armgit / peach

Public Imported from GitHub
0

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

feat(scripts): 妄想族发行目录的三枚方标进指定 logo 来源

longmeidao560cfcba71d1
diff --git a/scripts/harvest_studio_icons.py b/scripts/harvest_studio_icons.py
index 57540a28e..c0c863f66 100644
--- a/scripts/harvest_studio_icons.py
+++ b/scripts/harvest_studio_icons.py
@@ -131,6 +131,16 @@ LOGO_SOURCES: dict[str, str] = {
"シロウトTV": "http://www.jae.tokyo/jae2017/images/maker/maker_image/034.png",
"プレミアム": "http://www.jae.tokyo/jae2015/images/maker/27_premium.png",
"俺の素人": "http://www.jae.tokyo/jae2017/images/maker/maker_image/018.png",
+ # 妄想族自家发行目录 `mousouzoku-av.com/maker/list/<50音>/`(用户 2026-09-04 指定),
+ # 213 家一律 `contents/maker/id<N>/logo_l.jpg`、200×200 真方标——这一位要的正是方的,
+ # 不必烤。目录里 173 家挂 妄想族、39 家挂 エマニエル,都是同人/独立厂牌,
+ # 和账本只交出 4 家:`ゲッツ!!ボンボン/妄想族` 已有 jae.tokyo 的图,其余三家在这里。
+ # 名录写日文、账本写罗马字(`Asia/妄想族` 对 `Asia / Mousouzoku`),按斜杠左半对。
+ "ABC / Mousouzoku": "https://www.mousouzoku-av.com/contents/maker/id001/logo_l.jpg",
+ "Asia / Mousouzoku": "https://www.mousouzoku-av.com/contents/maker/id003/logo_l.jpg",
+ # 账本里这家存了两个实体,直撇号与弯撇号各一份(5562/8606,各 6 部)。两种写法过
+ # `safe_name` 都落到 `AVS_collector_s`,所以这一条同时覆盖两个——合并之前也不缺图。
+ "AVS collector's": "https://www.mousouzoku-av.com/contents/maker/id358/logo_l.jpg",
}
diff --git a/tests/test_studio_icon_variants.py b/tests/test_studio_icon_variants.py
index bf97a535f..6b138ce48 100644
--- a/tests/test_studio_icon_variants.py
+++ b/tests/test_studio_icon_variants.py
@@ -447,6 +447,21 @@ class LogoSourceTests(unittest.TestCase):
with self.subTest(url=url):
self.assertRegex(url, r"^http://www\.jae\.tokyo/jae201[457]/")
+ def test_the_mousouzoku_directory_supplies_square_logos_not_wordmarks(self):
+ """妄想族名录给的是 200×200 真方标,所以进这一张表而不是字标那张。
+
+ `AVS collector's` 在账本里直撇号与弯撇号各存了一个实体,两种写法过
+ `safe_name` 落到同一个键,一条覆盖两个。
+ """
+ directory = [url for url in MODULE.LOGO_SOURCES.values() if "mousouzoku-av" in url]
+ self.assertEqual(len(directory), 3)
+ for url in directory:
+ with self.subTest(url=url):
+ self.assertRegex(
+ url, r"^https://www\.mousouzoku-av\.com/contents/maker/id\d+/logo_l\.jpg$")
+ self.assertEqual(MODULE.safe_name("AVS collector's"),
+ MODULE.safe_name("AVS collector’s"))
+
def test_fc2_is_the_registered_logo_source(self):
"""用户 2026-09-03 指定的是 seeklogo 的 429409(600×600 方形锁定图)。