修复fongmi接口不支持剧名标题映射表 (#321)

fongmi接口不支持剧名标题映射表
This commit is contained in:
piaoyizy authored and GitHub committed 2026-05-25 10:09:52 +08:00
1 parent 59c59405d2
commit d5c4de4f8b
1 file changed
+8 -1
+8 -1
View File
@@ -364,7 +364,14 @@ export async function getFongmiDanmaku(url, req) {
if (!name) {
return jsonResponse([], 200);
}
// 使用剧名映射表转换剧名
if (globals.titleMappingTable && globals.titleMappingTable.size > 0) {
const mappedTitle = globals.titleMappingTable.get(name);
if (mappedTitle) {
log("info", `[Fongmi] Title mapped from original: ${name} to: ${mappedTitle}`);
name = mappedTitle;
}
}
const searchUrl = new URL(url.toString());
const detailStore = new Map();
const keywords = buildFongmiSearchKeywords(name);