fix(sites): OurBits 详情页按 BBCode 解析简介
OurBits 的简介在 div.ubbcode 里是未渲染的 BBCode(站点前端脚本渲染),按 HTML 取文本后 [quote] / [img] / [url] 原样留下、换行全被合并。extractDetailPage 遇到 ubbcode 容器且内容带 BBCode 标记时, 改用 pageFromBbcode 取简介 / 截图 / MediaInfo(换行保留),发布者、文件、标签与页面上的外部 ID 照旧。 覆盖层补 fileListPath(viewfilelist.php),与憨憨一样按需取文件列表。脱敏样例 OURBITS_DETAIL_PAGE + 测试。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
ee128e0b3f
commit
9cdf492291
6 files changed
+72
-1
No files matched your search
@@ -68,3 +68,29 @@ export const HHANCLUB_LIST_PAGE_TAGS = `<!DOCTYPE html><html><head><title>HHCLUB
|
||||
<div class="torrent-manage"><a href="download.php?id=900201">下载</a></div>
|
||||
</div>
|
||||
</body></html>`;
|
||||
|
||||
/** OurBits 详情页:简介是 div.ubbcode 里未渲染的 BBCode(站点靠前端脚本渲染),文件列表要另取 viewfilelist.php */
|
||||
export const OURBITS_DETAIL_PAGE = `<!DOCTYPE html><html><head><title>OurBits :: 种子详情</title></head><body>
|
||||
<a href="logout.php">退出</a>
|
||||
<h1 id="top">Sample Show 2025 S01 2160p WEB-DL H265 AAC-UBWEB</h1>
|
||||
<table width="100%">
|
||||
<tr><td class="rowhead">副标题</td><td class="rowfollow">示例剧 | 全40集</td></tr>
|
||||
<tr><td class="rowhead">基本信息</td><td class="rowfollow"><b>大小:</b>185.04 GB</td></tr>
|
||||
<tr><td class="rowhead">简介</td><td class="rowfollow"><div id='kdescr'><div class='ubbcode'>[quote][b][color=blue]官组作品,感谢原制作者发布。[/color][/b][/quote]
|
||||
|
||||
[img]https://img.example.test/poster.jpg[/img]
|
||||
◎片 名 示例剧
|
||||
◎年 代 2025
|
||||
◎豆瓣链接 [url=https://movie.douban.com/subject/36000001/]https://movie.douban.com/subject/36000001/[/url]
|
||||
|
||||
[quote]General
|
||||
Complete name : Sample.Show.S01E01.2160p.WEB-DL.mp4
|
||||
Format : MPEG-4
|
||||
Video
|
||||
Format : HEVC
|
||||
Width : 3 840 pixels
|
||||
Audio
|
||||
Format : AAC[/quote]
|
||||
[img]https://img.example.test/shot1.jpg[/img]</div></div></td></tr>
|
||||
<tr><td class="rowhead">种子文件</td><td class="rowfollow"><b>文件数:</b>40个文件<span id='filelist'></span></td></tr>
|
||||
</table></body></html>`;
|
||||
Reference in new issue
Block a user