feat: 新增番剧源

This commit is contained in:
zhiyu1998 2024-08-21 12:32:44 +08:00
parent 83a2ca03dd
commit 856e372141
2 changed files with 10 additions and 3 deletions

View File

@ -26,7 +26,7 @@ import {
XHS_NO_WATERMARK_HEADER, XHS_NO_WATERMARK_HEADER,
} from "../constants/constant.js"; } from "../constants/constant.js";
import { import {
ANIME_SERIES_SEARCH_LINK, ANIME_SERIES_SEARCH_LINK, ANIME_SERIES_SEARCH_LINK2,
BILI_EP_INFO, BILI_EP_INFO,
BILI_ONLINE, BILI_SSID_INFO, BILI_ONLINE, BILI_SSID_INFO,
BILI_STREAM_INFO, BILI_STREAM_INFO,
@ -659,7 +659,8 @@ export class tools extends plugin {
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 }识别:哔哩哔哩番剧,${ result.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 + result.title) }` `\n\n🪶 在线观看: ${ await urlTransformShortLink(ANIME_SERIES_SEARCH_LINK + result.title) }`,
`\n🌸 在线观看: ${ await urlTransformShortLink(ANIME_SERIES_SEARCH_LINK2 + result.title) }`
], true); ], true);
return ep; return ep;
} }

View File

@ -193,3 +193,9 @@ export const WEISHI_VIDEO_INFO = "https://h5.weishi.qq.com/webapp/json/weishi/WS
* @type {string} * @type {string}
*/ */
export const ANIME_SERIES_SEARCH_LINK = "https://ylu.cc/so.php?wd=" export const ANIME_SERIES_SEARCH_LINK = "https://ylu.cc/so.php?wd="
/**
* 番剧搜索链接2
* @type {string}
*/
export const ANIME_SERIES_SEARCH_LINK2 = "https://yhdm.one/search?q="