fix(media): 详情页标语只显示简体中文,简中没有时不显示
- adapters 新增 simplifiedChineseTagline:取值语言为繁中 / 非中文、或文字是繁体特有字时不显示;原语言为中文(zh / cn)的作品按简中处理 - TMDB 富详情带回 taglineLanguage;发现页详情的 tagline 按上述口径给出 - 媒体库作品详情新增 displayTagline(存储的标语语言为 null,只能按文字判断);metadata.tagline 存储不变 - 补 adapters 单测与作品详情接口测试 Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01Cxwgnn2pbzQ7rXv3rq7fei
This commit is contained in:
1 parent
895c039a40
commit
6549ab92c3
9 files changed
+124
-2
No files matched your search
@@ -1091,7 +1091,8 @@ function factsOf(d: LibraryDetail, entity: MediaEntityDetail | undefined): Media
|
||||
platform: strOf(m("platform")),
|
||||
originCountry: Array.isArray(country) ? country.filter((x): x is string => typeof x === "string") : [],
|
||||
overview: strOf(m("overview")),
|
||||
tagline: strOf(m("tagline")),
|
||||
// 头部标语只显示简体中文,由服务端按取值语言 / 文字判断(存储的 metadata.tagline 不变)
|
||||
tagline: d.displayTagline ?? null,
|
||||
posterPath: posterPathOf(e.metadata),
|
||||
backdropPath: strOf(m("backdropPath")),
|
||||
externalLinks: externalLinks({
|
||||
|
||||
Reference in new issue
Block a user