mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: 修复哔哩哔哩番剧逻辑
- 在 apps/tools.js 中调整哔哩哔哩番剧信息显示逻辑,使用变量存储标题 - 添加短链接转换功能,优化用户访问体验 - 更新信息显示格式,提高信息展示的一致性和准确性
This commit is contained in:
parent
dd7c846268
commit
59bb387034
@ -700,10 +700,10 @@ export class tools extends plugin {
|
|||||||
"收藏": favorite,
|
"收藏": favorite,
|
||||||
};
|
};
|
||||||
// 截断标题,查看Redis中是否存在,避免频繁走网络连接
|
// 截断标题,查看Redis中是否存在,避免频繁走网络连接
|
||||||
const { shortLink, shortLink2 } = await this.biliAnimeCacheDetect(result.title, result.cover);
|
const title = result.title;
|
||||||
e.reply([
|
e.reply([
|
||||||
segment.image(resp.result.cover),
|
segment.image(resp.result.cover),
|
||||||
`${ this.identifyPrefix }识别:哔哩哔哩番剧,${ result.title }\n🎯 评分: ${ result?.rating?.score ?? '-' } / ${ result?.rating?.count ?? '-' }\n📺 ${ result.new_ep.desc }, ${ result.seasons[0].new_ep.index_show }\n`,
|
`${ this.identifyPrefix }识别:哔哩哔哩番剧,${ title }\n🎯 评分: ${ result?.rating?.score ?? '-' } / ${ result?.rating?.count ?? '-' }\n📺 ${ result.new_ep.desc }, ${ result.seasons[0].new_ep.index_show }\n`,
|
||||||
`${ formatBiliInfo(dataProcessMap) }`,
|
`${ formatBiliInfo(dataProcessMap) }`,
|
||||||
`\n\n🪶 在线观看: ${ await urlTransformShortLink(ANIME_SERIES_SEARCH_LINK + title) }`,
|
`\n\n🪶 在线观看: ${ await urlTransformShortLink(ANIME_SERIES_SEARCH_LINK + title) }`,
|
||||||
`\n🌸 在线观看: ${ await urlTransformShortLink(ANIME_SERIES_SEARCH_LINK2 + title) }`
|
`\n🌸 在线观看: ${ await urlTransformShortLink(ANIME_SERIES_SEARCH_LINK2 + title) }`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user