feat(tmdb): language fallback chain, rich details and per-episode season fetch (MD-1)
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
c3aaf901ad
commit
fc1856c2e3
8 files changed
+834
-5
No files matched your search
@@ -252,6 +252,17 @@ export class TmdbClient {
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 原始 JSON 请求(走同一套缓存 / 限流 / 重试 / 脱敏):details.ts 的多语言详情、季集详情用。
|
||||
* path 以 `/` 开头(不含 /3 前缀),params 不含凭证。
|
||||
*/
|
||||
async getJson<T = Record<string, unknown>>(
|
||||
path: string,
|
||||
params: Record<string, string | undefined> = {},
|
||||
): Promise<T> {
|
||||
return this.get<T>(path, params);
|
||||
}
|
||||
|
||||
/** 单语言原始搜索(匹配链使用,对照 MP search.movies/tv_shows,语言取首选)。 */
|
||||
async searchRaw(type: MediaEntityType, query: string, year?: string | number): Promise<MetadataCandidate[]> {
|
||||
const lang = this.langs[0]!;
|
||||
|
||||
Reference in new issue
Block a user