feat(sites): 公开 BT 站详情(简介、文件清单、bgm 条目);修 AniBT 资源 ID 带 - 时判非法
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
06ba0711e2
commit
c29dbb4376
12 files changed
+464
-9
No files matched your search
@@ -51,7 +51,7 @@ const BR = "\u0000";
|
||||
* 保留换行的文本:<br> 与块级元素换行。源码换行不算换行(观众的简介是 `<br />\r\n`,
|
||||
* 两者都算会让每行之间多一空行);<pre> 里的换行保留。
|
||||
*/
|
||||
function blockText($: CheerioAPI, el: El): string {
|
||||
export function blockText($: CheerioAPI, el: El): string {
|
||||
const c = el.clone();
|
||||
c.find("script, style").remove();
|
||||
c.find("pre, textarea").each((_, n) => {
|
||||
|
||||
Reference in new issue
Block a user