Files
tvboxzt/spider_validation.html
T
2026-05-14 11:37:41 +08:00

563 lines
108 KiB
HTML

<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Spider 校验 HTML 报告</title>
<style>
:root {
color-scheme: light;
--bg: #eef3f1;
--panel: #ffffff;
--text: #102027;
--muted: #57707d;
--accent: #0f766e;
--accent-soft: #d7f3ee;
--danger: #b42318;
--danger-soft: #fde7e4;
--border: #d8e3df;
--shadow: 0 16px 40px rgba(16, 32, 39, 0.08);
}
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
background:
radial-gradient(circle at top left, rgba(15, 118, 110, 0.12), transparent 28%),
linear-gradient(180deg, #f7faf9 0%, var(--bg) 100%);
color: var(--text);
}
a {
color: var(--accent);
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
.page {
width: min(1600px, calc(100vw - 32px));
margin: 0 auto;
padding: 24px 0 40px;
}
.hero {
display: grid;
gap: 18px;
margin-bottom: 18px;
padding: 24px;
border: 1px solid rgba(15, 118, 110, 0.16);
border-radius: 20px;
background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(231, 245, 241, 0.96));
box-shadow: var(--shadow);
}
.hero h1 {
margin: 0;
font-size: clamp(30px, 5vw, 42px);
line-height: 1.05;
letter-spacing: -0.03em;
}
.hero p {
margin: 0;
color: var(--muted);
font-size: 15px;
}
.summary-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 12px;
}
.summary-card {
padding: 14px 16px;
border: 1px solid var(--border);
border-radius: 16px;
background: rgba(255, 255, 255, 0.84);
}
.summary-card span {
display: block;
font-size: 12px;
color: var(--muted);
margin-bottom: 6px;
}
.summary-card strong {
font-size: 24px;
letter-spacing: -0.03em;
}
.panel {
margin-top: 18px;
padding: 20px;
border: 1px solid var(--border);
border-radius: 20px;
background: var(--panel);
box-shadow: var(--shadow);
}
.panel h2 {
margin: 0 0 12px;
font-size: 18px;
}
.filters {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
gap: 12px;
align-items: end;
}
.filter {
display: grid;
gap: 6px;
}
.filter label {
font-size: 12px;
font-weight: 600;
color: var(--muted);
}
.filter input,
.filter select,
.filter button {
width: 100%;
min-height: 42px;
padding: 10px 12px;
border: 1px solid var(--border);
border-radius: 12px;
background: #fff;
color: var(--text);
font: inherit;
}
.filter button {
background: var(--accent);
color: #fff;
border-color: var(--accent);
cursor: pointer;
font-weight: 600;
}
.filter button:hover {
filter: brightness(0.97);
}
#summary-line {
margin: 14px 0 0;
color: var(--muted);
font-size: 14px;
}
.table-wrap {
overflow: auto;
border: 1px solid var(--border);
border-radius: 16px;
}
table {
width: 100%;
min-width: 1300px;
border-collapse: collapse;
background: #fff;
}
thead {
background: #f4faf8;
}
th,
td {
padding: 12px 14px;
border-bottom: 1px solid var(--border);
vertical-align: top;
text-align: left;
font-size: 13px;
}
td {
line-height: 1.45;
word-break: break-word;
}
th button {
all: unset;
display: inline-flex;
align-items: center;
gap: 6px;
cursor: pointer;
font-weight: 700;
color: var(--text);
}
th button .sort-indicator {
color: var(--muted);
font-size: 11px;
}
.status {
display: inline-flex;
align-items: center;
padding: 4px 10px;
border-radius: 999px;
font-weight: 700;
font-size: 12px;
white-space: nowrap;
}
.status.success {
color: var(--accent);
background: var(--accent-soft);
}
.status.failed {
color: var(--danger);
background: var(--danger-soft);
}
.empty {
padding: 28px 14px;
text-align: center;
color: var(--muted);
}
@media (max-width: 768px) {
.page {
width: min(100vw - 20px, 1600px);
padding-top: 16px;
}
.hero,
.panel {
padding: 16px;
border-radius: 16px;
}
}
</style>
</head>
<body>
<div class="page">
<section class="hero">
<div>
<h1>Spider 校验 HTML 报告</h1>
<p>本地静态报告,支持前端即时筛选与表头排序。</p>
</div>
<div class="summary-grid">
<div class="summary-card"><span>生成时间</span><strong id="generated-at"></strong></div>
<div class="summary-card"><span>并发线程</span><strong id="max-workers"></strong></div>
<div class="summary-card"><span>总数</span><strong id="total-count"></strong></div>
<div class="summary-card"><span>成功</span><strong id="success-count"></strong></div>
<div class="summary-card"><span>失败</span><strong id="failed-count"></strong></div>
<div class="summary-card"><span>总耗时</span><strong id="total-duration"></strong></div>
</div>
</section>
<section class="panel">
<h2>筛选</h2>
<div class="filters">
<div class="filter">
<label for="status-filter">状态</label>
<select id="status-filter"></select>
</div>
<div class="filter">
<label for="stage-filter">失败阶段</label>
<select id="stage-filter"></select>
</div>
<div class="filter">
<label for="keyword-filter">爬虫名 / 文件名关键字</label>
<input id="keyword-filter" type="search" placeholder="例如 alpha / 4K指南" />
</div>
<div class="filter">
<label for="duration-min-filter">最小耗时(ms)</label>
<input id="duration-min-filter" type="number" min="0" />
</div>
<div class="filter">
<label for="duration-max-filter">最大耗时(ms)</label>
<input id="duration-max-filter" type="number" min="0" />
</div>
<div class="filter">
<label for="reset-filters">操作</label>
<button id="reset-filters" type="button">重置筛选</button>
</div>
</div>
<p id="summary-line">当前显示 0 / 0 条</p>
</section>
<section class="panel">
<h2>明细结果</h2>
<div class="table-wrap">
<table>
<thead>
<tr>
<th><button type="button" data-sort-key="spider">爬虫 <span class="sort-indicator"></span></button></th>
<th><button type="button" data-sort-key="status">状态 <span class="sort-indicator"></span></button></th>
<th><button type="button" data-sort-key="failed_stage">失败阶段 <span class="sort-indicator"></span></button></th>
<th><button type="button" data-sort-key="total">总耗时 <span class="sort-indicator"></span></button></th>
<th><button type="button" data-sort-key="module_load">模块加载 <span class="sort-indicator"></span></button></th>
<th><button type="button" data-sort-key="init">初始化 <span class="sort-indicator"></span></button></th>
<th><button type="button" data-sort-key="home">首页分类 <span class="sort-indicator"></span></button></th>
<th><button type="button" data-sort-key="category">分类列表 <span class="sort-indicator"></span></button></th>
<th><button type="button" data-sort-key="detail">视频详情 <span class="sort-indicator"></span></button></th>
<th><button type="button" data-sort-key="player">播放地址 <span class="sort-indicator"></span></button></th>
<th><button type="button" data-sort-key="url_check">地址校验 <span class="sort-indicator"></span></button></th>
<th>返回地址</th>
<th>错误信息</th>
</tr>
</thead>
<tbody id="results-body"></tbody>
</table>
</div>
</section>
</div>
<script>
const report = {"generated_at": "2026-05-14T11:36:40+08:00", "max_workers": 16, "total_duration_ms": 60732.482, "summary": {"total": 72, "success": 59, "failed": 13, "success_rate": 0.8194, "stage_failures": {"module_load": 0, "init": 0, "home": 1, "category": 3, "detail": 0, "player": 1, "url_check": 1, "unexpected": 7}}, "results": [{"spider": "4K指南", "file": "4K指南.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 212.616, "init": 0.001, "home": 0.003, "category": 2894.736, "detail": 4424.166, "player": 0.011, "url_check": 186.936, "total": 7755.209}, "counts": {"classes": 5, "category_videos": 50, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "zuixin", "vod_id": "20113", "flag": "夸克网盘", "play_id": "push://https://pan.quark.cn/s/547b032442bb"}, "player": {"parse": 0, "url": "https://pan.quark.cn/s/547b032442bb", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.quark.cn/s/547b032442bb", "reason": null}}, {"spider": "6V磁力", "file": "6V磁力.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 203.3, "init": 0.005, "home": 0.002, "category": 3345.443, "detail": 2328.786, "player": 0.002, "url_check": 0.12, "total": 5893.864}, "counts": {"classes": 12, "category_videos": 18, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "dianshiju/guoju", "vod_id": "/dianshiju/guoju/28661.html", "flag": "01-07.1080p.HD国语中字无水印.mkv", "play_id": "magnet:?xt=urn:btih:bf9a134b00c3ccc55c743b1340e15539f2321241&dn=%E7%88%B1%E6%83%85%E6%B2%A1%E6%9C%89%E7%A5%9E%E8%AF%9D01-07"}, "player": {"parse": 0, "url": "magnet:?xt=urn:btih:bf9a134b00c3ccc55c743b1340e15539f2321241&dn=%E7%88%B1%E6%83%85%E6%B2%A1%E6%9C%89%E7%A5%9E%E8%AF%9D01-07", "valid": true, "reachable": null, "status_code": null, "final_url": "magnet:?xt=urn:btih:bf9a134b00c3ccc55c743b1340e15539f2321241&dn=%E7%88%B1%E6%83%85%E6%B2%A1%E6%9C%89%E7%A5%9E%E8%AF%9D01-07", "reason": "非 HTTP 地址,按协议格式通过"}}, {"spider": "AAZ音乐", "file": "AAZ音乐.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 212.451, "init": 0.001, "home": 4580.951, "category": 2188.921, "detail": 2172.125, "player": 4270.656, "url_check": 1891.009, "total": 15340.429}, "counts": {"classes": 6, "category_videos": 60, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "new", "vod_id": "song:e0f3c77fa564632f924f77fc5943ba7e", "flag": "AAZ音乐", "play_id": "song:e0f3c77fa564632f924f77fc5943ba7e"}, "player": {"parse": 0, "url": "https://s.5bb3.com/m4a/3374e5b4a4d9d8e8f967976747b5c2ca.m4a", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://lv-sycdn.kuwo.cn/4395b3fd3ed841c21094f426d23e8d6c/6a054356/resource/1307392909/trackmedia/C200000W91kQ0efKLA.m4a?from=vip", "reason": null}}, {"spider": "PPnix", "file": "PPnix.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 250.74, "init": 0.001, "home": 0.001, "category": 2262.047, "detail": 2201.584, "player": 0.017, "url_check": 3727.31, "total": 8442.398}, "counts": {"classes": 2, "category_videos": 24, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "1", "vod_id": "movie/8155.html", "flag": "PPnix", "play_id": "8155|1080P"}, "player": {"parse": 0, "url": "https://www.ppnix.com/info/m3u8/8155/1080P.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://www.ppnix.com/info/m3u8/8155/1080P.m3u8", "reason": null}}, {"spider": "QQ音乐", "file": "QQ音乐.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 210.795, "init": 0.007, "home": 0.006, "category": 151.64, "detail": 205.271, "player": 593.068, "url_check": 141.503, "total": 2759.617}, "counts": {"classes": 6, "category_videos": 44, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "top", "vod_id": "top:135", "flag": "QQ音乐", "play_id": "qqmusic:004B3lys3Yy5Eq:664343612|孤剑吟 - 周深"}, "player": {"parse": 0, "url": "https://isure.stream.qqmusic.qq.com/M500004B3lys3Yy5Eq.mp3?guid=a2b176b7e55054ddd8385daacf3c7787&vkey=8F3A79E6E9A7B644D35AD36AE01263E5D201A28752D908BC608168B685E68F678886DFEB3E0FBA73DF0A2A9E98831935ADCE986C04CC7EE1__v2b9ab97b&uin=&fromtag=119042&src=M50000458tCR4OeDga.mp3&redirect=1", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://isure.stream.qqmusic.qq.com/M500004B3lys3Yy5Eq.mp3?guid=a2b176b7e55054ddd8385daacf3c7787&vkey=8F3A79E6E9A7B644D35AD36AE01263E5D201A28752D908BC608168B685E68F678886DFEB3E0FBA73DF0A2A9E98831935ADCE986C04CC7EE1__v2b9ab97b&uin=&fromtag=119042&src=M50000458tCR4OeDga.mp3&redirect=1", "reason": null}}, {"spider": "libvio", "file": "libvio.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 205.422, "init": 0.001, "home": 0.001, "category": 4348.366, "detail": 3887.164, "player": 0.006, "url_check": 169.739, "total": 8645.877}, "counts": {"classes": 6, "category_videos": 48, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "index", "vod_id": "714893322", "flag": "夸克", "play_id": "https://pan.quark.cn/s/0337b1b18498"}, "player": {"parse": 0, "url": "https://pan.quark.cn/s/0337b1b18498", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.quark.cn/s/0337b1b18498", "reason": null}}, {"spider": "youknow", "file": "youknow.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 210.202, "init": 0.001, "home": 0.001, "category": 3672.843, "detail": 2918.823, "player": 3989.183, "url_check": 8124.467, "total": 18917.431}, "counts": {"classes": 7, "category_videos": 239, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "index", "vod_id": "203914", "flag": "YouKnowTV", "play_id": "eyJ2b2RfaWQiOiIyMDM5MTQiLCJlcGlzb2RlX2luZGV4IjoxLCJ0aXRsZSI6IjIwMjYwNTEz5bqP56-HIiwiY2FuZGlkYXRlcyI6W3sic291cmNlIjoi57q_6LevMSIsInNvdXJjZV9pZCI6IjEiLCJlcGlzb2RlX3VybCI6Imh0dHBzOi8vd3d3LnlvdWtub3cudHYvcC8yMDM5MTQtMS0xLyJ9LHsic291cmNlIjoi57q_6LevMiIsInNvdXJjZV9pZCI6IjEiLCJlcGlzb2RlX3VybCI6Imh0dHBzOi8vd3d3LnlvdWtub3cudHYvcC8yMDM5MTQtMS0xLyJ9LHsic291cmNlIjoi57q_6LevNCIsInNvdXJjZV9pZCI6IjIiLCJlcGlzb2RlX3VybCI6Imh0dHBzOi8vd3d3LnlvdWtub3cudHYvcC8yMDM5MTQtMi0xLyJ9LHsic291cmNlIjoi57q_6LevNSIsInNvdXJjZV9pZCI6IjIiLCJlcGlzb2RlX3VybCI6Imh0dHBzOi8vd3d3LnlvdWtub3cudHYvcC8yMDM5MTQtMi0xLyJ9XX0"}, "player": {"parse": 0, "url": "https://vip.dytt-tvs.com/20260513/19942_f4e4b6af/index.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://cnvod.jimxtc.com/20260513/19942_f4e4b6af/index.m3u8", "reason": null}}, {"spider": "七味", "file": "七味.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 201.876, "init": 0.004, "home": 0.001, "category": 2452.579, "detail": 4325.1, "player": 51985.172, "url_check": 1248.622, "total": 60244.454}, "counts": {"classes": 5, "category_videos": 42, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "499598", "flag": "暴风 1", "play_id": "pcmp4:/py/499598-1-1.html"}, "player": {"parse": 1, "url": "https://www.pcmp4.com/py/499598-1-1.html", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://www.pcmp4.com/py/499598-1-1.html", "reason": null}}, {"spider": "不太灵", "file": "不太灵.txt", "success": false, "failed_stage": "player", "error": "playerContent 未返回播放地址", "traceback": null, "timings_ms": {"module_load": 199.676, "init": 0.001, "home": 2003.101, "category": 2165.274, "detail": 3995.597, "player": 0.002, "url_check": 0.0, "total": 14867.922}, "counts": {"classes": 5, "category_videos": 25, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "2", "vod_id": "36310054", "flag": "quark#1", "play_id": "quark"}, "player": {"parse": 0, "url": "", "valid": false, "reachable": null, "status_code": null, "final_url": "", "reason": null}}, {"spider": "世纪音乐", "file": "世纪音乐.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 205.512, "init": 0.001, "home": 309.296, "category": 167.309, "detail": 156.419, "player": 0.018, "url_check": 580.511, "total": 1431.972}, "counts": {"classes": 5, "category_videos": 28, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "home", "vod_id": "song:hwcdwntcwc", "flag": "世纪音乐", "play_id": "music:hwcdwntcwc"}, "player": {"parse": 0, "url": "https://www.4c44.com/data/down.php?ac=music&id=hwcdwntcwc", "valid": true, "reachable": true, "status_code": 200, "final_url": "http://m701.music.126.net/20260514120142/07d6545bdd617946f14f5ffd0da0a444/jdymusic/obj/wo3DlMOGwrbDjj7DisKw/29031235696/85ad/0fb1/e0dc/8a7f10c5be4dd2f80e83a659b4795fc2.mp3?vuutv=vpYkPxEPPEVwwLpgvkfjr52aAhQMQ22c3SotAk+p20GDVve+e7hv4RpArGXbkcHtLdiwSdR7Xqeg1CRkfubAjIOFr8uECsE+JvN7aT+Hj8Y=", "reason": null}}, {"spider": "两个BT", "file": "两个BT.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 212.424, "init": 0.001, "home": 0.001, "category": 2192.745, "detail": 4039.859, "player": 6002.45, "url_check": 3358.42, "total": 15838.24}, "counts": {"classes": 14, "category_videos": 24, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "zgjun", "vod_id": "/play/ch45x6dqu", "flag": "两个BT", "play_id": "eyJwaWQiOiIvcGxheS9jaDQ1eDZkcXUiLCJzaWQiOiIvcGxheS9jaDQ1eDZkcXUiLCJuYW1lIjoiMSJ9"}, "player": {"parse": 0, "url": "https://zijieapi.douyinbyte.com/m3u8/44dcdf41c3b2cbc74554e3498f99dd5b.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://zijieapi.douyinbyte.com/m3u8/44dcdf41c3b2cbc74554e3498f99dd5b.m3u8", "reason": null}}, {"spider": "乌云影视", "file": "乌云影视.txt", "success": false, "failed_stage": "unexpected", "error": "HTTPSConnectionPool(host='wooyun.tv', port=443): Max retries exceeded with url: /movie/media/video/list?mediaId=483203&lineName=&resolutionCode= (Caused by ConnectTimeoutError(<HTTPSConnection(host='wooyun.tv', port=443) at 0x7a41e9909d10>, 'Connection to wooyun.tv timed out. (connect timeout=15)'))", "traceback": "Traceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connection.py\", line 204, in _new_conn\n sock = connection.create_connection(\n (self._dns_host, self.port),\n ...<2 lines>...\n socket_options=self.socket_options,\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n raise err\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/util/connection.py\", line 73, in create_connection\n sock.connect(sa)\n ~~~~~~~~~~~~^^^^\nTimeoutError: timed out\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 787, in urlopen\n response = self._make_request(\n conn,\n ...<10 lines>...\n **response_kw,\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 488, in _make_request\n raise new_e\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 464, in _make_request\n self._validate_conn(conn)\n ~~~~~~~~~~~~~~~~~~~^^^^^^\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 1093, in _validate_conn\n conn.connect()\n ~~~~~~~~~~~~^^\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connection.py\", line 759, in connect\n self.sock = sock = self._new_conn()\n ~~~~~~~~~~~~~~^^\nurllib3.exceptions.ConnectTimeoutError: (<HTTPSConnection(host='wooyun.tv', port=443) at 0x7a41e9909d10>, 'Connection to wooyun.tv timed out. (connect timeout=15)')\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/requests/adapters.py\", line 645, in send\n resp = conn.urlopen(\n method=request.method,\n ...<9 lines>...\n chunked=chunked,\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 841, in urlopen\n retries = retries.increment(\n method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/util/retry.py\", line 535, in increment\n raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nurllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='wooyun.tv', port=443): Max retries exceeded with url: /movie/media/video/list?mediaId=483203&lineName=&resolutionCode= (Caused by ConnectTimeoutError(<HTTPSConnection(host='wooyun.tv', port=443) at 0x7a41e9909d10>, 'Connection to wooyun.tv timed out. (connect timeout=15)'))\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 716, in validate_spider_file\n _validate_from_tid(\n ~~~~~~~~~~~~~~~~~~^\n spider=spider,\n ^^^^^^^^^^^^^^\n ...<6 lines>...\n logger=logger,\n ^^^^^^^^^^^^^^\n )\n ^\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 428, in _validate_from_tid\n detail_result = _run_timed(result[\"timings_ms\"], \"detail\", spider.detailContent, clock, [vod_id])\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 291, in _run_timed\n return func(*args, **kwargs)\n File \"/home/harold/workspace/tvbox-resources/py/乌云影视.txt\", line 344, in detailContent\n File \"/home/harold/workspace/tvbox-resources/py/乌云影视.txt\", line 80, in _request_json\nrequests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='wooyun.tv', port=443): Max retries exceeded with url: /movie/media/video/list?mediaId=483203&lineName=&resolutionCode= (Caused by ConnectTimeoutError(<HTTPSConnection(host='wooyun.tv', port=443) at 0x7a41e9909d10>, 'Connection to wooyun.tv timed out. (connect timeout=15)'))\n", "timings_ms": {"module_load": 207.701, "init": 0.001, "home": 2830.205, "category": 4819.537, "detail": 21162.582, "player": 0.0, "url_check": 0.0, "total": 29023.123}, "counts": {"classes": 7, "category_videos": 24, "detail_videos": 0, "episodes": 0}, "samples": {"tid": "movie", "vod_id": "483203", "flag": null, "play_id": null}, "player": {"parse": null, "url": "", "valid": false, "reachable": null, "status_code": null, "final_url": "", "reason": null}}, {"spider": "乐兔", "file": "乐兔.txt", "success": false, "failed_stage": "unexpected", "error": "HTTPSConnectionPool(host='www.letu.me', port=443): Read timed out. (read timeout=10)", "traceback": "Traceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 464, in _make_request\n self._validate_conn(conn)\n ~~~~~~~~~~~~~~~~~~~^^^^^^\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 1093, in _validate_conn\n conn.connect()\n ~~~~~~~~~~~~^^\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connection.py\", line 796, in connect\n sock_and_verified = _ssl_wrap_socket_and_match_hostname(\n sock=sock,\n ...<14 lines>...\n assert_fingerprint=self.assert_fingerprint,\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connection.py\", line 975, in _ssl_wrap_socket_and_match_hostname\n ssl_sock = ssl_wrap_socket(\n sock=sock,\n ...<8 lines>...\n tls_in_tls=tls_in_tls,\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/util/ssl_.py\", line 483, in ssl_wrap_socket\n ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)\nTimeoutError: _ssl.c:1063: The handshake operation timed out\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/requests/adapters.py\", line 645, in send\n resp = conn.urlopen(\n method=request.method,\n ...<9 lines>...\n chunked=chunked,\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 841, in urlopen\n retries = retries.increment(\n method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/util/retry.py\", line 490, in increment\n raise reraise(type(error), error, _stacktrace)\n ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/util/util.py\", line 39, in reraise\n raise value\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 787, in urlopen\n response = self._make_request(\n conn,\n ...<10 lines>...\n **response_kw,\n )\nurllib3.exceptions.ReadTimeoutError: HTTPSConnectionPool(host='www.letu.me', port=443): Read timed out. (read timeout=10)\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 716, in validate_spider_file\n _validate_from_tid(\n ~~~~~~~~~~~~~~~~~~^\n spider=spider,\n ^^^^^^^^^^^^^^\n ...<6 lines>...\n logger=logger,\n ^^^^^^^^^^^^^^\n )\n ^\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 412, in _validate_from_tid\n category_result = _run_timed(result[\"timings_ms\"], \"category\", spider.categoryContent, clock, tid, \"1\", False, {})\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 291, in _run_timed\n return func(*args, **kwargs)\n File \"/home/harold/workspace/tvbox-resources/py/乐兔.txt\", line 117, in categoryContent\n File \"/home/harold/workspace/tvbox-resources/py/乐兔.txt\", line 72, in _request_html\nrequests.exceptions.ReadTimeout: HTTPSConnectionPool(host='www.letu.me', port=443): Read timed out. (read timeout=10)\n", "timings_ms": {"module_load": 197.536, "init": 0.001, "home": 0.001, "category": 10042.974, "detail": 0.0, "player": 0.0, "url_check": 0.0, "total": 10274.273}, "counts": {"classes": 5, "category_videos": 0, "detail_videos": 0, "episodes": 0}, "samples": {"tid": "1", "vod_id": null, "flag": null, "play_id": null}, "player": {"parse": null, "url": "", "valid": false, "reachable": null, "status_code": null, "final_url": "", "reason": null}}, {"spider": "二小", "file": "二小.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 203.951, "init": 0.001, "home": 0.001, "category": 1988.651, "detail": 2840.473, "player": 0.004, "url_check": 978.097, "total": 6048.4}, "counts": {"classes": 4, "category_videos": 72, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "/index.php/vod/detail/id/12379.html", "flag": "百度#二小", "play_id": "https://pan.baidu.com/s/1KBoFekk6ROhuUssGJN2kpQ?pwd=rpgh"}, "player": {"parse": 0, "url": "https://pan.baidu.com/s/1KBoFekk6ROhuUssGJN2kpQ?pwd=rpgh", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.baidu.com/share/init?surl=KBoFekk6ROhuUssGJN2kpQ&pwd=rpgh", "reason": null}}, {"spider": "人人电影", "file": "人人电影.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 202.451, "init": 0.001, "home": 0.001, "category": 5136.827, "detail": 2644.93, "player": 0.013, "url_check": 933.533, "total": 8956.739}, "counts": {"classes": 4, "category_videos": 10, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "movie/list_2", "vod_id": "/movie/2020/0128/7925.html", "flag": "baidu", "play_id": "https://pan.baidu.com/s/1Qlm09dB5we4U1n7hQXnRjA?pwd=n3ac"}, "player": {"parse": 0, "url": "https://pan.baidu.com/s/1Qlm09dB5we4U1n7hQXnRjA?pwd=n3ac", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.baidu.com/share/init?surl=Qlm09dB5we4U1n7hQXnRjA&pwd=n3ac", "reason": null}}, {"spider": "人人视频", "file": "人人视频.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 195.977, "init": 0.001, "home": 311.921, "category": 264.558, "detail": 244.265, "player": 532.224, "url_check": 506.672, "total": 2065.791}, "counts": {"classes": 4, "category_videos": 30, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "TV", "vod_id": "57181", "flag": "人人专线", "play_id": "57181@383563"}, "player": {"parse": 0, "url": "https://qn-302-m-play.bwcgee.cn/60b815c142c671f1ac975017e1f90402/30ffc804ae454cdaa23c4518d492908d-0e6b5348788a46aeb1399e154ae316e5-ld.mp4?sign=b9e2168e7d7ef6a7ee85825bf988fa92&t=6a057b8a&clientType=web_pc&clientVersion=1.0.0&parseUsage=PLAY&uid=0&rk=3d7df603053d45e4988fdd499d35cca3&hevc=false&seasonId=57181", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://612498182.ahdohpiechei.com:22443/OzwfcER4VzlnIl4iDWQYIyk1VyZaKRQLOz9bOw/60b815c142c671f1ac975017e1f90402/30ffc804ae454cdaa23c4518d492908d-0e6b5348788a46aeb1399e154ae316e5-ld.mp4?sign=b9e2168e7d7ef6a7ee85825bf988fa92&t=6a057b8a&clientType=web_pc&clientVersion=1.0.0&parseUsage=PLAY&uid=0&rk=3d7df603053d45e4988fdd499d35cca3&hevc=false&seasonId=57181&x-sid=0X11AhMWijA4gx&x-redirect=0X11AOzwfcER4VzlnIl4iDWcYIyk1VyZZKRR5IzZEMxI-FnolJ1AiASQfMTg3WydaKRU5&x-lid=0X11Ab5874771ed4e&x-st=0X11Ahash", "reason": null}}, {"spider": "优酷", "file": "优酷.txt", "success": false, "failed_stage": "unexpected", "error": "HTTPSConnectionPool(host='www.youku.com', port=443): Max retries exceeded with url: /category/data?optionRefresh=1&pageNo=1&params=%7B%22type%22%3A%22%E7%94%B5%E8%A7%86%E5%89%A7%22%7D (Caused by ConnectTimeoutError(<HTTPSConnection(host='www.youku.com', port=443) at 0x7a41e9908e10>, 'Connection to www.youku.com timed out. (connect timeout=5)'))", "traceback": "Traceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connection.py\", line 204, in _new_conn\n sock = connection.create_connection(\n (self._dns_host, self.port),\n ...<2 lines>...\n socket_options=self.socket_options,\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n raise err\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/util/connection.py\", line 73, in create_connection\n sock.connect(sa)\n ~~~~~~~~~~~~^^^^\nTimeoutError: timed out\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 787, in urlopen\n response = self._make_request(\n conn,\n ...<10 lines>...\n **response_kw,\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 488, in _make_request\n raise new_e\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 464, in _make_request\n self._validate_conn(conn)\n ~~~~~~~~~~~~~~~~~~~^^^^^^\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 1093, in _validate_conn\n conn.connect()\n ~~~~~~~~~~~~^^\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connection.py\", line 759, in connect\n self.sock = sock = self._new_conn()\n ~~~~~~~~~~~~~~^^\nurllib3.exceptions.ConnectTimeoutError: (<HTTPSConnection(host='www.youku.com', port=443) at 0x7a41e9908e10>, 'Connection to www.youku.com timed out. (connect timeout=5)')\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/requests/adapters.py\", line 645, in send\n resp = conn.urlopen(\n method=request.method,\n ...<9 lines>...\n chunked=chunked,\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 841, in urlopen\n retries = retries.increment(\n method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/util/retry.py\", line 535, in increment\n raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nurllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.youku.com', port=443): Max retries exceeded with url: /category/data?optionRefresh=1&pageNo=1&params=%7B%22type%22%3A%22%E7%94%B5%E8%A7%86%E5%89%A7%22%7D (Caused by ConnectTimeoutError(<HTTPSConnection(host='www.youku.com', port=443) at 0x7a41e9908e10>, 'Connection to www.youku.com timed out. (connect timeout=5)'))\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 716, in validate_spider_file\n _validate_from_tid(\n ~~~~~~~~~~~~~~~~~~^\n spider=spider,\n ^^^^^^^^^^^^^^\n ...<6 lines>...\n logger=logger,\n ^^^^^^^^^^^^^^\n )\n ^\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 412, in _validate_from_tid\n category_result = _run_timed(result[\"timings_ms\"], \"category\", spider.categoryContent, clock, tid, \"1\", False, {})\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 291, in _run_timed\n return func(*args, **kwargs)\n File \"/home/harold/workspace/tvbox-resources/py/优酷.txt\", line 261, in categoryContent\n File \"/home/harold/workspace/atv-spiders/py/base/spider.py\", line 145, in fetch\n rsp = requests.get(url, params=params, cookies=cookies, headers=headers, timeout=timeout, verify=verify,\n stream=stream, allow_redirects=allow_redirects)\nrequests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='www.youku.com', port=443): Max retries exceeded with url: /category/data?optionRefresh=1&pageNo=1&params=%7B%22type%22%3A%22%E7%94%B5%E8%A7%86%E5%89%A7%22%7D (Caused by ConnectTimeoutError(<HTTPSConnection(host='www.youku.com', port=443) at 0x7a41e9908e10>, 'Connection to www.youku.com timed out. (connect timeout=5)'))\n", "timings_ms": {"module_load": 9.673, "init": 0.001, "home": 0.001, "category": 5007.162, "detail": 0.0, "player": 0.0, "url_check": 0.0, "total": 5019.382}, "counts": {"classes": 6, "category_videos": 0, "detail_videos": 0, "episodes": 0}, "samples": {"tid": "电视剧", "vod_id": null, "flag": null, "play_id": null}, "player": {"parse": null, "url": "", "valid": false, "reachable": null, "status_code": null, "final_url": "", "reason": null}}, {"spider": "低端影视", "file": "低端影视.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 10.396, "init": 0.001, "home": 0.001, "category": 4494.385, "detail": 3885.941, "player": 0.01, "url_check": 185.01, "total": 11151.915}, "counts": {"classes": 4, "category_videos": 24, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "series", "vod_id": "movie/mia", "flag": "quark", "play_id": "https://pan.quark.cn/s/df592192c290"}, "player": {"parse": 0, "url": "https://pan.quark.cn/s/df592192c290", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.quark.cn/s/df592192c290", "reason": null}}, {"spider": "修罗", "file": "修罗.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 7.496, "init": 0.001, "home": 0.001, "category": 2958.095, "detail": 3511.908, "player": 6842.641, "url_check": 4646.257, "total": 17967.556}, "counts": {"classes": 4, "category_videos": 24, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "movie", "vod_id": "kongbu/3777", "flag": "修罗直连", "play_id": "play/3777-0"}, "player": {"parse": 0, "url": "https://v.xlys.ltd.ua/obj/C7280CFE592B5530FBF2A69325F9C423E9A29A30CCA3FCEDD4485F02CA21B7E9", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://lf26-imcloud-file-sign.bytetos.com/ad-penny-bucket/o0EEIAAAt4uBCWDq8FAdfNTiQIzRVEAgCeOhCd?x-expires=1778733291&x-signature=UyQtAPRUNZGeeuYR8yZP0mb0Dq8%3D", "reason": null}}, {"spider": "凡客TV", "file": "凡客TV.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.541, "init": 0.0, "home": 0.0, "category": 2618.462, "detail": 2605.74, "player": 8929.317, "url_check": 6602.906, "total": 20761.491}, "counts": {"classes": 8, "category_videos": 32, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "b759a032caab0687", "flag": "高速线路", "play_id": "{\"movie_id\":\"b759a032caab0687\",\"link_id\":\"ee2850af60c6cb015c2589a05c922a37\",\"line_id\":\"line1\",\"line_name\":\"高速线路\",\"episode_name\":\"1080p\",\"type\":\"switch\",\"page\":\"https://fktv.me/movie/detail/b759a032caab0687\"}"}, "player": {"parse": 0, "url": "https://fktv.me/ysapi/m3u8/p/c7d6a6868eebff523608b24c7d4ddbb3.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://fktv.me/ysapi/m3u8/p/c7d6a6868eebff523608b24c7d4ddbb3.m3u8", "reason": null}}, {"spider": "剧圈圈", "file": "剧圈圈.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 7.067, "init": 0.001, "home": 0.0, "category": 6378.344, "detail": 6519.199, "player": 13993.031, "url_check": 3483.594, "total": 30382.009}, "counts": {"classes": 5, "category_videos": 16, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "dianying", "vod_id": "vod/62996", "flag": "BF备用", "play_id": "play/62996-2-1"}, "player": {"parse": 1, "url": "https://www.jqqzx.cc/play/62996-2-1.html", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://www.jqqzx.one/play/62996-2-1.html", "reason": null}}, {"spider": "剧迷", "file": "剧迷.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.801, "init": 0.001, "home": 0.001, "category": 2161.79, "detail": 4169.95, "player": 3311.987, "url_check": 5076.087, "total": 14725.111}, "counts": {"classes": 6, "category_videos": 150, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "443094", "flag": "高清线路 ᴴᴰ", "play_id": "443094-11-1"}, "player": {"parse": 0, "url": "https://play.phimgood.com/20260511/26651_2f4d94b1/index.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://play.phimgood.com/20260511/26651_2f4d94b1/index.m3u8", "reason": null}}, {"spider": "博看听书", "file": "博看听书.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.389, "init": 0.0, "home": 3256.562, "category": 281.573, "detail": 796.765, "player": 0.005, "url_check": 78.865, "total": 4418.914}, "counts": {"classes": 11, "category_videos": 24, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "1319", "vod_id": "902849", "flag": "博看听书", "play_id": "http://audio.bookan.com.cn/video1/audio/20200706001/aache64_133068a2.m4a"}, "player": {"parse": 0, "url": "http://audio.bookan.com.cn/video1/audio/20200706001/aache64_133068a2.m4a", "valid": true, "reachable": true, "status_code": 200, "final_url": "http://audio.bookan.com.cn/video1/audio/20200706001/aache64_133068a2.m4a", "reason": null}}, {"spider": "双星", "file": "双星.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 3.255, "init": 343.307, "home": 0.009, "category": 189.935, "detail": 227.927, "player": 0.003, "url_check": 165.378, "total": 930.427}, "counts": {"classes": 7, "category_videos": 15, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "ju", "vod_id": "/ju/10461.html", "flag": "夸克", "play_id": "https://pan.quark.cn/s/aa6c4b0a49c8"}, "player": {"parse": 0, "url": "https://pan.quark.cn/s/aa6c4b0a49c8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.quark.cn/s/aa6c4b0a49c8", "reason": null}}, {"spider": "听书", "file": "听书.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 3.762, "init": 84.234, "home": 0.002, "category": 190.805, "detail": 2891.424, "player": 346.071, "url_check": 105.437, "total": 3622.625}, "counts": {"classes": 11, "category_videos": 10, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "6", "vod_id": "63", "flag": "直链", "play_id": "2926931|||63"}, "player": {"parse": 0, "url": "http://audiopay.cos.tx.xmcdn.com/download/1.0.0/storages/b817-audiopay/16/AA/GKwRIaIGGaRGADgE-gEx_hMS-aacv2-48K.m4a?sign=98d4e541f3e8ef03862e5176d3ed4294&buy_key=FM&token=1176&timestamp=1778729813&duration=453", "valid": true, "reachable": true, "status_code": 200, "final_url": "http://audiopay.cos.tx.xmcdn.com/download/1.0.0/storages/b817-audiopay/16/AA/GKwRIaIGGaRGADgE-gEx_hMS-aacv2-48K.m4a?sign=98d4e541f3e8ef03862e5176d3ed4294&buy_key=FM&token=1176&timestamp=1778729813&duration=453", "reason": null}}, {"spider": "听友FM", "file": "听友FM.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 13.581, "init": 0.001, "home": 3144.022, "category": 4442.419, "detail": 4865.956, "player": 6253.655, "url_check": 181.786, "total": 18902.57}, "counts": {"classes": 8, "category_videos": 20, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "46", "vod_id": "9783312385", "flag": "听友FM", "play_id": "9783312385|1"}, "player": {"parse": 0, "url": "https://file.hgeuz.cn/stream/eJwANwDI_wJVZgVKIIrU0ECux-GJ1PSt38ahythCqsH-r9TAQ4rj5F94rOjbQKjk063xyIX2z3hfeGcIHF4BAAD__5DtISY.?ts=1778729827&sign=43770f665a4d8d3e94b74e9ac8572463", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://file.hgeuz.cn/stream/eJwANwDI_wJVZgVKIIrU0ECux-GJ1PSt38ahythCqsH-r9TAQ4rj5F94rOjbQKjk063xyIX2z3hfeGcIHF4BAAD__5DtISY.?ts=1778729827&sign=43770f665a4d8d3e94b74e9ac8572463", "reason": null}}, {"spider": "咕咕动漫", "file": "咕咕动漫.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 9.84, "init": 0.005, "home": 5869.793, "category": 2066.696, "detail": 4112.175, "player": 3199.085, "url_check": 156.417, "total": 15414.665}, "counts": {"classes": 3, "category_videos": 30, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "6", "vod_id": "5006", "flag": "咕咕新线(国内高速)", "play_id": "parse_api=a2796a09189261bcaf3cc4542d7c5ac2&url=3LubxqZsk6qbM3DCPWWx/cOuPcSr2xK2yOFGYC7FReM/Pgh9Xb/qg0/YIVmGivgx&token=|左撇子艾伦|1"}, "player": {"parse": 0, "url": "https://p26-bot-workflow-sign.byteimg.com/tos-cn-i-mdko3gqilj/c87332e45fc54a998855db93afefd79b~tplv-mdko3gqilj-image.image?rk3s=81d4c505&x-expires=1809833825&x-signature=fJLr7pQYBKXm6xL2dQMlDJ%2BLddI%3D", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://p26-bot-workflow-sign.byteimg.com/tos-cn-i-mdko3gqilj/c87332e45fc54a998855db93afefd79b~tplv-mdko3gqilj-image.image?rk3s=81d4c505&x-expires=1809833825&x-signature=fJLr7pQYBKXm6xL2dQMlDJ%2BLddI%3D", "reason": null}}, {"spider": "四万影视", "file": "四万影视.txt", "success": false, "failed_stage": "unexpected", "error": "HTTPSConnectionPool(host='40000.me', port=443): Max retries exceeded with url: /api/maccms?ac=detail&t=20&pg=1&by=time (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1081)')))", "traceback": "Traceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 464, in _make_request\n self._validate_conn(conn)\n ~~~~~~~~~~~~~~~~~~~^^^^^^\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 1093, in _validate_conn\n conn.connect()\n ~~~~~~~~~~~~^^\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connection.py\", line 796, in connect\n sock_and_verified = _ssl_wrap_socket_and_match_hostname(\n sock=sock,\n ...<14 lines>...\n assert_fingerprint=self.assert_fingerprint,\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connection.py\", line 975, in _ssl_wrap_socket_and_match_hostname\n ssl_sock = ssl_wrap_socket(\n sock=sock,\n ...<8 lines>...\n tls_in_tls=tls_in_tls,\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/util/ssl_.py\", line 483, in ssl_wrap_socket\n ssl_sock = _ssl_wrap_socket_impl(sock, context, tls_in_tls, server_hostname)\nssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1081)\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 787, in urlopen\n response = self._make_request(\n conn,\n ...<10 lines>...\n **response_kw,\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 488, in _make_request\n raise new_e\nurllib3.exceptions.SSLError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1081)\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/requests/adapters.py\", line 645, in send\n resp = conn.urlopen(\n method=request.method,\n ...<9 lines>...\n chunked=chunked,\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 841, in urlopen\n retries = retries.increment(\n method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/util/retry.py\", line 535, in increment\n raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nurllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='40000.me', port=443): Max retries exceeded with url: /api/maccms?ac=detail&t=20&pg=1&by=time (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1081)')))\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 716, in validate_spider_file\n _validate_from_tid(\n ~~~~~~~~~~~~~~~~~~^\n spider=spider,\n ^^^^^^^^^^^^^^\n ...<6 lines>...\n logger=logger,\n ^^^^^^^^^^^^^^\n )\n ^\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 412, in _validate_from_tid\n category_result = _run_timed(result[\"timings_ms\"], \"category\", spider.categoryContent, clock, tid, \"1\", False, {})\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 291, in _run_timed\n return func(*args, **kwargs)\n File \"/home/harold/workspace/tvbox-resources/py/四万影视.txt\", line 238, in categoryContent\n File \"/home/harold/workspace/tvbox-resources/py/四万影视.txt\", line 212, in _api_get\nrequests.exceptions.SSLError: HTTPSConnectionPool(host='40000.me', port=443): Max retries exceeded with url: /api/maccms?ac=detail&t=20&pg=1&by=time (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate (_ssl.c:1081)')))\n", "timings_ms": {"module_load": 4.313, "init": 0.001, "home": 0.001, "category": 3866.421, "detail": 0.0, "player": 0.0, "url_check": 0.0, "total": 3873.232}, "counts": {"classes": 5, "category_videos": 0, "detail_videos": 0, "episodes": 0}, "samples": {"tid": "20", "vod_id": null, "flag": null, "play_id": null}, "player": {"parse": null, "url": "", "valid": false, "reachable": null, "status_code": null, "final_url": "", "reason": null}}, {"spider": "在线之家", "file": "在线之家.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 20.169, "init": 0.002, "home": 0.002, "category": 3911.407, "detail": 5730.942, "player": 4370.898, "url_check": 239.473, "total": 14274.149}, "counts": {"classes": 6, "category_videos": 12, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "1", "vod_id": "voddetail/4601.html", "flag": "zxzj", "play_id": "vodplay/4601-1-1.html"}, "player": {"parse": 0, "url": "https://media-sxty-fy-corp.sx3oss.ctyunxs.cn/CORPCLOUD/f076ccf5-a095-45a2-b086-cbf66f4aa40d.mp4?response-content-disposition=attachment%3Bfilename%3D%22%E9%93%81%E8%A1%80%E6%88%98%E5%A3%AB%E6%9D%80%E6%88%AE%E4%B9%8B%E5%9C%B02025HD1080P.mp4%22%3Bfilename*%3DUTF-8%27%27%25E9%2593%2581%25E8%25A1%2580%25E6%2588%2598%25E5%25A3%25AB%25E6%259D%2580%25E6%2588%25AE%25E4%25B9%258B%25E5%259C%25B02025HD1080P.mp4&x-amz-CLIENTNETWORK=UNKNOWN&x-amz-CLOUDTYPEIN=CORP&x-amz-CLIENTTYPEIN=UNKNOWN&Signature=c4G0H%2BtZo1Bp7tHpsqadpQ/99Ok%3D&AWSAccessKeyId=0Lg7dAq3ZfHvePP8DKEU&Expires=1778730809&x-amz-limitrate=102400&response-content-type=video/mp4&x-amz-FSIZE=2183471772&x-amz-UID=10000004591358&x-amz-UFID=31374317010337932", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://media-sxty-fy-corp.sx3oss.ctyunxs.cn/CORPCLOUD/f076ccf5-a095-45a2-b086-cbf66f4aa40d.mp4?response-content-disposition=attachment%3Bfilename%3D%22%E9%93%81%E8%A1%80%E6%88%98%E5%A3%AB%E6%9D%80%E6%88%AE%E4%B9%8B%E5%9C%B02025HD1080P.mp4%22%3Bfilename*%3DUTF-8%27%27%25E9%2593%2581%25E8%25A1%2580%25E6%2588%2598%25E5%25A3%25AB%25E6%259D%2580%25E6%2588%25AE%25E4%25B9%258B%25E5%259C%25B02025HD1080P.mp4&x-amz-CLIENTNETWORK=UNKNOWN&x-amz-CLOUDTYPEIN=CORP&x-amz-CLIENTTYPEIN=UNKNOWN&Signature=c4G0H%2BtZo1Bp7tHpsqadpQ/99Ok%3D&AWSAccessKeyId=0Lg7dAq3ZfHvePP8DKEU&Expires=1778730809&x-amz-limitrate=102400&response-content-type=video/mp4&x-amz-FSIZE=2183471772&x-amz-UID=10000004591358&x-amz-UFID=31374317010337932", "reason": null}}, {"spider": "多多", "file": "多多.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 12.951, "init": 0.002, "home": 0.005, "category": 489.265, "detail": 407.453, "player": 0.004, "url_check": 841.9, "total": 1753.312}, "counts": {"classes": 6, "category_videos": 72, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "/index.php/vod/detail/id/9451.html", "flag": "百度#多多", "play_id": "https://pan.baidu.com/s/1shl4w4dRUpSfwkkyQjUDBw?pwd=yyds"}, "player": {"parse": 0, "url": "https://pan.baidu.com/s/1shl4w4dRUpSfwkkyQjUDBw?pwd=yyds", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.baidu.com/share/init?surl=shl4w4dRUpSfwkkyQjUDBw&pwd=yyds", "reason": null}}, {"spider": "如意资源", "file": "如意资源.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 6.752, "init": 0.001, "home": 0.01, "category": 8958.134, "detail": 4523.99, "player": 0.004, "url_check": 2468.966, "total": 15958.751}, "counts": {"classes": 6, "category_videos": 20, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "77018", "flag": "rym3u8", "play_id": "https://svip.ryiplay18.com/20260512/6346_e524dfd0/index.m3u8"}, "player": {"parse": 0, "url": "https://svip.ryiplay18.com/20260512/6346_e524dfd0/index.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://svip.ryiplay18.com/20260512/6346_e524dfd0/index.m3u8", "reason": null}}, {"spider": "布布影视", "file": "布布影视.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 6.262, "init": 0.001, "home": 0.001, "category": 2459.037, "detail": 4310.753, "player": 3845.044, "url_check": 441.808, "total": 11063.581}, "counts": {"classes": 4, "category_videos": 24, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "69765", "flag": "JD蓝光(1)", "play_id": "JD4K@1@JD-5f4f247d6dfbc0b5d5cb1efeaa2303790"}, "player": {"parse": 0, "url": "https://c167-obsdaz-ykj-01.obs.dualstack.cidc-rp-2006.joint.cmecloud.cn/1810c8ff2a78456b9348fadfe7ab0fd0086?response-content-disposition=attachment%3B%20filename%2A%3DUTF-8%27%274K.mp4&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20260514T033705Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Credential=AH4RWOMWLEL7ROYSF2S5%2F20260514%2Fcidc-rp-2006%2Fs3%2Faws4_request&t=2&u=1261698636582652615&ot=family&oi=1263000283947275586&f=FibTFWRt8ncqZsYDWQP5LF5BI3oB5_LXK&ext=eyJ1dCI6MX0%3D&X-Amz-Signature=f6090784e6867f07469cca5e5de68d364ec40fc87a5358e4a5431df94d96a193", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://c167-obsdaz-ykj-01.obs.dualstack.cidc-rp-2006.joint.cmecloud.cn/1810c8ff2a78456b9348fadfe7ab0fd0086?response-content-disposition=attachment%3B%20filename%2A%3DUTF-8%27%274K.mp4&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20260514T033705Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Credential=AH4RWOMWLEL7ROYSF2S5%2F20260514%2Fcidc-rp-2006%2Fs3%2Faws4_request&t=2&u=1261698636582652615&ot=family&oi=1263000283947275586&f=FibTFWRt8ncqZsYDWQP5LF5BI3oB5_LXK&ext=eyJ1dCI6MX0%3D&X-Amz-Signature=f6090784e6867f07469cca5e5de68d364ec40fc87a5358e4a5431df94d96a193", "reason": null}}, {"spider": "微观短剧", "file": "微观短剧.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 5.398, "init": 0.021, "home": 458.461, "category": 490.179, "detail": 336.133, "player": 0.002, "url_check": 116.912, "total": 1407.766}, "counts": {"classes": 30, "category_videos": 30, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "都市", "vod_id": "110000044555935694", "flag": "1080P", "play_id": "https://tv-video.cdn.drama.9ddm.com/22/A0/22A0BFFF46651CC23355B115F6307653.mp4?timestamp=1778729816&sign=285a05e5da419c119a0476114390675b"}, "player": {"parse": 0, "url": "https://tv-video.cdn.drama.9ddm.com/22/A0/22A0BFFF46651CC23355B115F6307653.mp4?timestamp=1778729816&sign=285a05e5da419c119a0476114390675b", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://tv-video.cdn.drama.9ddm.com/22/A0/22A0BFFF46651CC23355B115F6307653.mp4?timestamp=1778729816&sign=285a05e5da419c119a0476114390675b", "reason": null}}, {"spider": "新韩剧网", "file": "新韩剧网.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 5.262, "init": 0.001, "home": 0.0, "category": 2819.988, "detail": 1760.396, "player": 1718.421, "url_check": 3501.766, "total": 9806.356}, "counts": {"classes": 5, "category_videos": 16, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "1", "vod_id": "3591", "flag": "在线云播", "play_id": "3591_1_1"}, "player": {"parse": 0, "url": "https://cdn.vvvip-plays33.cc/20260224/8726_d6f84c02/index.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://cdn.vvvip-plays33.cc/20260224/8726_d6f84c02/index.m3u8", "reason": null}}, {"spider": "星星短剧", "file": "星星短剧.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 10.527, "init": 0.001, "home": 0.001, "category": 521.137, "detail": 630.987, "player": 0.01, "url_check": 231.136, "total": 1394.547}, "counts": {"classes": 5, "category_videos": 10, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "1287", "vod_id": "422599939194881@@穿越诡计爱上你@@苏清韵为了给妹妹治病,卖身富豪被卓熙辰所救,答应卓熙辰的契约婚姻。苏清韵受到了爱慕卓熙辰的上官溪玲的疯狂攻击与算计,导致妹妹离世。苏清韵误会记恨卓熙辰因此拿刀伤了他,自己也被判入狱五年。", "flag": "星星短剧", "play_id": "https://img.novel.wsljf.xyz/shortPlay-mp4/420424102051841/EvnIm1746774634078/abc6208e-390b-4533-a1a4-b9e5741cc384/540x960/output.m3u8"}, "player": {"parse": 0, "url": "https://img.novel.wsljf.xyz/shortPlay-mp4/420424102051841/EvnIm1746774634078/abc6208e-390b-4533-a1a4-b9e5741cc384/540x960/output.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://img.novel.wsljf.xyz/shortPlay-mp4/420424102051841/EvnIm1746774634078/abc6208e-390b-4533-a1a4-b9e5741cc384/540x960/output.m3u8", "reason": null}}, {"spider": "木偶", "file": "木偶.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 3.797, "init": 0.0, "home": 0.0, "category": 4169.667, "detail": 4286.883, "player": 0.007, "url_check": 268.299, "total": 8729.129}, "counts": {"classes": 7, "category_videos": 72, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "25", "vod_id": "/index.php/vod/detail/id/7881.html", "flag": "115#木偶", "play_id": "https://115cdn.com/s/swf0umw36dh?password=z9b7"}, "player": {"parse": 0, "url": "https://115cdn.com/s/swf0umw36dh?password=z9b7", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://115cdn.com/s/swf0umw36dh?password=z9b7", "reason": null}}, {"spider": "樱花动漫", "file": "樱花动漫.txt", "success": false, "failed_stage": "unexpected", "error": "HTTPSConnectionPool(host='www.dmvvv.com', port=443): Max retries exceeded with url: /play/18834-1-1/ (Caused by ConnectTimeoutError(<HTTPSConnection(host='www.dmvvv.com', port=443) at 0x7a41bc7365d0>, 'Connection to www.dmvvv.com timed out. (connect timeout=15)'))", "traceback": "Traceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 716, in validate_spider_file\n _validate_from_tid(\n ~~~~~~~~~~~~~~~~~~^\n spider=spider,\n ^^^^^^^^^^^^^^\n ...<6 lines>...\n logger=logger,\n ^^^^^^^^^^^^^^\n )\n ^\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 528, in _validate_from_tid\n raise last_error or ValidationError(\"detail\", \"没有可用的播放条目\")\nValidationError: HTTP 404\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connection.py\", line 204, in _new_conn\n sock = connection.create_connection(\n (self._dns_host, self.port),\n ...<2 lines>...\n socket_options=self.socket_options,\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n raise err\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/util/connection.py\", line 73, in create_connection\n sock.connect(sa)\n ~~~~~~~~~~~~^^^^\nTimeoutError: timed out\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 787, in urlopen\n response = self._make_request(\n conn,\n ...<10 lines>...\n **response_kw,\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 488, in _make_request\n raise new_e\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 464, in _make_request\n self._validate_conn(conn)\n ~~~~~~~~~~~~~~~~~~~^^^^^^\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 1093, in _validate_conn\n conn.connect()\n ~~~~~~~~~~~~^^\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connection.py\", line 759, in connect\n self.sock = sock = self._new_conn()\n ~~~~~~~~~~~~~~^^\nurllib3.exceptions.ConnectTimeoutError: (<HTTPSConnection(host='www.dmvvv.com', port=443) at 0x7a41bc7365d0>, 'Connection to www.dmvvv.com timed out. (connect timeout=15)')\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/requests/adapters.py\", line 645, in send\n resp = conn.urlopen(\n method=request.method,\n ...<9 lines>...\n chunked=chunked,\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 841, in urlopen\n retries = retries.increment(\n method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/util/retry.py\", line 535, in increment\n raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nurllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.dmvvv.com', port=443): Max retries exceeded with url: /play/18834-1-1/ (Caused by ConnectTimeoutError(<HTTPSConnection(host='www.dmvvv.com', port=443) at 0x7a41bc7365d0>, 'Connection to www.dmvvv.com timed out. (connect timeout=15)'))\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 732, in validate_spider_file\n _validate_from_tid(\n ~~~~~~~~~~~~~~~~~~^\n spider=spider,\n ^^^^^^^^^^^^^^\n ...<6 lines>...\n logger=logger,\n ^^^^^^^^^^^^^^\n )\n ^\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 467, in _validate_from_tid\n player_result = _run_timed(result[\"timings_ms\"], \"player\", spider.playerContent, clock, play[\"flag\"], play[\"play_id\"], [])\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 291, in _run_timed\n return func(*args, **kwargs)\n File \"/home/harold/workspace/tvbox-resources/py/樱花动漫.txt\", line 96, in playerContent\n File \"/home/harold/workspace/tvbox-resources/py/樱花动漫.txt\", line 113, in _get_html\nrequests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='www.dmvvv.com', port=443): Max retries exceeded with url: /play/18834-1-1/ (Caused by ConnectTimeoutError(<HTTPSConnection(host='www.dmvvv.com', port=443) at 0x7a41bc7365d0>, 'Connection to www.dmvvv.com timed out. (connect timeout=15)'))\n", "timings_ms": {"module_load": 6.209, "init": 0.001, "home": 0.001, "category": 4106.645, "detail": 4130.845, "player": 15016.669, "url_check": 2825.714, "total": 43696.277}, "counts": {"classes": 4, "category_videos": 36, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "riman", "vod_id": "/detail/18834/", "flag": "高清", "play_id": "/play/18834-1-1/"}, "player": {"parse": null, "url": "", "valid": false, "reachable": null, "status_code": null, "final_url": "", "reason": null}}, {"spider": "橘子TV", "file": "橘子TV.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.37, "init": 4892.514, "home": 3773.315, "category": 4960.929, "detail": 2856.704, "player": 5741.784, "url_check": 2439.517, "total": 24670.028}, "counts": {"classes": 8, "category_videos": 18, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "50", "vod_id": "397266", "flag": "一起看APP", "play_id": "25385531"}, "player": {"parse": 0, "url": "https://usaydd.0rvgx279.com/m3u87/share/7404387/7599927/20260511/161239/720/index.m3u8?sign=e0d7810e7dee87e7b489afee94bc8c1a&t=1778729839", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://usaydd.0rvgx279.com/m3u87/share/7404387/7599927/20260511/161239/720/index.m3u8?sign=e0d7810e7dee87e7b489afee94bc8c1a&t=1778729839", "reason": null}}, {"spider": "欧歌", "file": "欧歌.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.927, "init": 0.001, "home": 0.001, "category": 1947.294, "detail": 1889.624, "player": 0.008, "url_check": 987.773, "total": 4830.29}, "counts": {"classes": 6, "category_videos": 72, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "/index.php/vod/detail/id/29938.html", "flag": "百度", "play_id": "https://pan.baidu.com/s/1vcYSB0ydxgAzc-1Tvg63oA?pwd=8888"}, "player": {"parse": 0, "url": "https://pan.baidu.com/s/1vcYSB0ydxgAzc-1Tvg63oA?pwd=8888", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.baidu.com/share/init?surl=vcYSB0ydxgAzc-1Tvg63oA&pwd=8888", "reason": null}}, {"spider": "河马短剧", "file": "河马短剧.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.845, "init": 0.0, "home": 613.171, "category": 689.502, "detail": 1159.4, "player": 0.028, "url_check": 167.064, "total": 2634.814}, "counts": {"classes": 10, "category_videos": 10, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "462", "vod_id": "/drama/41000188058@@穿成妖妃跳科三", "flag": "河马剧场", "play_id": "https://dzzt-video.cbread.cn/b428e25414f0ccd9b87769bd32ac266a/6a067e20/81/8x5/85x0/850x8/85088100014/612504118_1/612504118.720p.narrowv3.mp4"}, "player": {"parse": 0, "url": "https://dzzt-video.cbread.cn/b428e25414f0ccd9b87769bd32ac266a/6a067e20/81/8x5/85x0/850x8/85088100014/612504118_1/612504118.720p.narrowv3.mp4", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://dzzt-video.cbread.cn/b428e25414f0ccd9b87769bd32ac266a/6a067e20/81/8x5/85x0/850x8/85088100014/612504118_1/612504118.720p.narrowv3.mp4", "reason": null}}, {"spider": "滴答影视", "file": "滴答影视.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.438, "init": 0.001, "home": 0.001, "category": 1931.955, "detail": 3965.762, "player": 0.004, "url_check": 1171.215, "total": 7074.065}, "counts": {"classes": 5, "category_videos": 48, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "detail/3034", "flag": "百度", "play_id": "https://pan.baidu.com/s/1iUOPtAOz3ypj2nyY7Wv9Ww?pwd=969e"}, "player": {"parse": 0, "url": "https://pan.baidu.com/s/1iUOPtAOz3ypj2nyY7Wv9Ww?pwd=969e", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.baidu.com/share/init?surl=iUOPtAOz3ypj2nyY7Wv9Ww&pwd=969e", "reason": null}}, {"spider": "潮流APP", "file": "潮流APP.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 7.143, "init": 0.004, "home": 123.846, "category": 123.888, "detail": 167.591, "player": 339.412, "url_check": 75.296, "total": 837.842}, "counts": {"classes": 10, "category_videos": 12, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "10", "vod_id": "75722", "flag": "线路二 (点击换线)", "play_id": "75722@@0@@0"}, "player": {"parse": 0, "url": "http://210.16.164.82:9090/nby/m3u8/getM3u8?name=jx.91by.top&time=1778729847874&url=NBY-e84585334a25c5b49078dfac81549a0b.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "http://210.16.164.82:9090/nby/m3u8/getM3u8?name=jx.91by.top&time=1778729847874&url=NBY-e84585334a25c5b49078dfac81549a0b.m3u8", "reason": null}}, {"spider": "爱奇艺", "file": "爱奇艺.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 16.159, "init": 0.032, "home": 3654.068, "category": 862.522, "detail": 285.701, "player": 0.001, "url_check": 180.448, "total": 5000.012}, "counts": {"classes": 11, "category_videos": 48, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "pcw:1", "vod_id": "pcw:1$3136167655271600", "flag": "爱奇艺", "play_id": "http://www.iqiyi.com/v_vd55wo89uk.html"}, "player": {"parse": 1, "url": "http://www.iqiyi.com/v_vd55wo89uk.html", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://www.iqiyi.com/v_vd55wo89uk.html", "reason": null}}, {"spider": "独播库", "file": "独播库.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.19, "init": 0.001, "home": 0.0, "category": 1840.36, "detail": 3869.591, "player": 2006.877, "url_check": 1811.899, "total": 9533.46}, "counts": {"classes": 6, "category_videos": 48, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "index", "vod_id": "143459", "flag": "独播库", "play_id": "143459-1-1"}, "player": {"parse": 0, "url": "https://vid.dbokutv.com/20260410/ppotb62-S71lT2yliZApDBSvkYzBsrmD3fpCJ4nBsHeTcyo5xOy6ejOcyvCZAvDZAvkREyNbaSsDaBJ0nBJ0oGZCvGJCsDYvjS34/chunklist.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://vid.dbokutv.com/20260410/ppotb62-S71lT2yliZApDBSvkYzBsrmD3fpCJ4nBsHeTcyo5xOy6ejOcyvCZAvDZAvkREyNbaSsDaBJ0nBJ0oGZCvGJCsDYvjS34/chunklist.m3u8", "reason": null}}, {"spider": "玩偶哥哥", "file": "玩偶哥哥.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.065, "init": 0.001, "home": 0.0, "category": 4860.589, "detail": 2027.178, "player": 0.003, "url_check": 1075.906, "total": 7968.255}, "counts": {"classes": 8, "category_videos": 70, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "/voddetail/124738.html", "flag": "百度#玩偶哥哥", "play_id": "https://pan.baidu.com/s/1A7SRS5d57E_2ex6wFgbvHg?pwd=wogg"}, "player": {"parse": 0, "url": "https://pan.baidu.com/s/1A7SRS5d57E_2ex6wFgbvHg?pwd=wogg", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.baidu.com/share/init?surl=A7SRS5d57E_2ex6wFgbvHg&pwd=wogg", "reason": null}}, {"spider": "玩偶聚合", "file": "玩偶聚合.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 6.671, "init": 0.001, "home": 0.05, "category": 1997.095, "detail": 1894.396, "player": 0.002, "url_check": 1231.508, "total": 5130.441}, "counts": {"classes": 10, "category_videos": 70, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "site_wanou", "vod_id": "site:wanou:/voddetail/124739.html", "flag": "百度#玩偶", "play_id": "https://pan.baidu.com/s/1rbENAs61QO34Jd4z7TqLAw?pwd=wogg"}, "player": {"parse": 0, "url": "https://pan.baidu.com/s/1rbENAs61QO34Jd4z7TqLAw?pwd=wogg", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.baidu.com/share/init?surl=rbENAs61QO34Jd4z7TqLAw&pwd=wogg", "reason": null}}, {"spider": "瓜子", "file": "瓜子.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 7.053, "init": 0.001, "home": 0.023, "category": 2141.438, "detail": 4432.195, "player": 1954.393, "url_check": 136.53, "total": 8672.691}, "counts": {"classes": 5, "category_videos": 30, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "128782", "flag": "1080", "play_id": "vod_d_id=128782&vurl_id=3323715&domain_type=8&resolution=1080&type=play"}, "player": {"parse": 0, "url": "https://vd.hxcztech.com/497ec613145546075502a546fe862ed7/20260514113714/decry/vd/20260311/MjYwZjE1YTRkO/172631/1998_1080/aac/h264/hls/decrypt/index.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://vd.hxcztech.com/497ec613145546075502a546fe862ed7/20260514113714/decry/vd/20260311/MjYwZjE1YTRkO/172631/1998_1080/aac/h264/hls/decrypt/index.m3u8", "reason": null}}, {"spider": "百度短剧", "file": "百度短剧.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 3.506, "init": 0.0, "home": 398.168, "category": 288.745, "detail": 595.964, "player": 297.33, "url_check": 111.974, "total": 1696.246}, "counts": {"classes": 29, "category_videos": 9, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "3", "vod_id": "9626395189336331475", "flag": "百度短剧", "play_id": "5228077877184398747|||9626395189336331475"}, "player": {"parse": 0, "url": "http://vd3.bdstatic.com/mda-rh54j6is12ydd0q3/1080p/mv_cae264_backtrack_1080p_normal/1754453773225130912/mda-rh54j6is12ydd0q3.mp4?v_from_s=haokan-ui-video-hna", "valid": true, "reachable": true, "status_code": 200, "final_url": "http://vd3.bdstatic.com/mda-rh54j6is12ydd0q3/1080p/mv_cae264_backtrack_1080p_normal/1754453773225130912/mda-rh54j6is12ydd0q3.mp4?v_from_s=haokan-ui-video-hna", "reason": null}}, {"spider": "盘Ta", "file": "盘Ta.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.048, "init": 0.0, "home": 315.505, "category": 280.03, "detail": 295.25, "player": 0.027, "url_check": 171.914, "total": 1067.394}, "counts": {"classes": 8, "category_videos": 30, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "?tagId=39765285016165", "vod_id": "thread?topicId=264430", "flag": "移动", "play_id": "https://yun.139.com/shareweb/%23/w/i/2sUfBKpu5QBqz"}, "player": {"parse": 0, "url": "https://yun.139.com/shareweb/#/w/i/2sUfBKpu5QBqz", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://yun.139.com/shareweb/#/w/i/2sUfBKpu5QBqz", "reason": null}}, {"spider": "盘聚", "file": "盘聚.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 11.435, "init": 0.001, "home": 0.002, "category": 3842.424, "detail": 1833.449, "player": 1735.809, "url_check": 963.211, "total": 8387.363}, "counts": {"classes": 4, "category_videos": 20, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "/", "vod_id": "/movies/134742/", "flag": "百度1", "play_id": "push://https://www.seedhub.cc/link_start/?redirect_to=pan_id_571535&movie_title=❤️❤️❤️【飞驰人生3】【4K 1080P】更新于 ✅ 今天"}, "player": {"parse": 0, "url": "https://pan.baidu.com/s/1NiQJW0DJBw8FR_Y1_k8Yig?pwd=ojmk", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.baidu.com/share/init?surl=NiQJW0DJBw8FR_Y1_k8Yig&pwd=ojmk", "reason": null}}, {"spider": "盘链", "file": "盘链.txt", "success": false, "failed_stage": "category", "error": "分类视频列表为空", "traceback": null, "timings_ms": {"module_load": 10.791, "init": 0.005, "home": 0.001, "category": 0.004, "detail": 0.0, "player": 0.0, "url_check": 0.0, "total": 11.048}, "counts": {"classes": 5, "category_videos": 0, "detail_videos": 0, "episodes": 0}, "samples": {"tid": "1", "vod_id": null, "flag": null, "play_id": null}, "player": {"parse": null, "url": "", "valid": false, "reachable": null, "status_code": null, "final_url": "", "reason": null}}, {"spider": "短剧优选", "file": "短剧优选.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 18.625, "init": 726.423, "home": 0.085, "category": 791.669, "detail": 412.832, "player": 0.002, "url_check": 204.046, "total": 2154.327}, "counts": {"classes": 11, "category_videos": 74, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "七猫", "vod_id": "七猫@24333", "flag": "七猫短剧", "play_id": "https://cdn-vod-playlet.wtzw.com/asset/b936eac78f199fd865afbe3c5b707e7f/play_multi_video/6f7310c287644b7c813ab8e2eb7a4a0c/f1223068052dd7f1bc88718af4b2c0e4.m3u8"}, "player": {"parse": 0, "url": "https://cdn-vod-playlet.wtzw.com/asset/b936eac78f199fd865afbe3c5b707e7f/play_multi_video/6f7310c287644b7c813ab8e2eb7a4a0c/f1223068052dd7f1bc88718af4b2c0e4.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://cdn-vod-playlet.wtzw.com/asset/b936eac78f199fd865afbe3c5b707e7f/play_multi_video/6f7310c287644b7c813ab8e2eb7a4a0c/f1223068052dd7f1bc88718af4b2c0e4.m3u8", "reason": null}}, {"spider": "短剧网", "file": "短剧网.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.899, "init": 0.001, "home": 0.001, "category": 2768.11, "detail": 2000.799, "player": 0.005, "url_check": 178.357, "total": 4952.664}, "counts": {"classes": 2, "category_videos": 20, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "1", "vod_id": "https://sm3.cc/?id=50362", "flag": "夸克", "play_id": "https://pan.quark.cn/s/f7faaad58fd5"}, "player": {"parse": 0, "url": "https://pan.quark.cn/s/f7faaad58fd5", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.quark.cn/s/f7faaad58fd5", "reason": null}}, {"spider": "糯米", "file": "糯米.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 6.152, "init": 0.001, "home": 693.422, "category": 816.479, "detail": 173.74, "player": 321.919, "url_check": 1375.31, "total": 3387.598}, "counts": {"classes": 7, "category_videos": 81, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "/vod-type-id-1-pg-1.html", "vod_id": "/vod-detail-id-90063.html", "flag": "uvw", "play_id": "/vod-play-id-90063-src-1-num-1.html"}, "player": {"parse": 0, "url": "https://vip.123pan.cn/1853039965/dy/东北往事极恶不赦.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://vip.123pan.cn/1853039965/dy/%E4%B8%9C%E5%8C%97%E5%BE%80%E4%BA%8B%E6%9E%81%E6%81%B6%E4%B8%8D%E8%B5%A6.m3u8", "reason": null}}, {"spider": "网易云音乐", "file": "网易云音乐.txt", "success": false, "failed_stage": "unexpected", "error": "Expecting value: line 1 column 1 (char 0)", "traceback": "Traceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/requests/models.py\", line 978, in json\n return complexjson.loads(self.text, **kwargs)\n ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^\n File \"/home/harold/.local/share/uv/python/cpython-3.14.3-linux-x86_64-gnu/lib/python3.14/json/__init__.py\", line 352, in loads\n return _default_decoder.decode(s)\n ~~~~~~~~~~~~~~~~~~~~~~~^^^\n File \"/home/harold/.local/share/uv/python/cpython-3.14.3-linux-x86_64-gnu/lib/python3.14/json/decoder.py\", line 345, in decode\n obj, end = self.raw_decode(s, idx=_w(s, 0).end())\n ~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/harold/.local/share/uv/python/cpython-3.14.3-linux-x86_64-gnu/lib/python3.14/json/decoder.py\", line 363, in raw_decode\n raise JSONDecodeError(\"Expecting value\", s, err.value) from None\njson.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 716, in validate_spider_file\n _validate_from_tid(\n ~~~~~~~~~~~~~~~~~~^\n spider=spider,\n ^^^^^^^^^^^^^^\n ...<6 lines>...\n logger=logger,\n ^^^^^^^^^^^^^^\n )\n ^\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 467, in _validate_from_tid\n player_result = _run_timed(result[\"timings_ms\"], \"player\", spider.playerContent, clock, play[\"flag\"], play[\"play_id\"], [])\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 291, in _run_timed\n return func(*args, **kwargs)\n File \"/home/harold/workspace/tvbox-resources/py/网易云音乐.txt\", line 124, in playerContent\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/requests/models.py\", line 982, in json\n raise RequestsJSONDecodeError(e.msg, e.doc, e.pos)\nrequests.exceptions.JSONDecodeError: Expecting value: line 1 column 1 (char 0)\n", "timings_ms": {"module_load": 6.943, "init": 0.002, "home": 442.475, "category": 440.577, "detail": 0.006, "player": 209.676, "url_check": 0.0, "total": 1101.58}, "counts": {"classes": 62, "category_videos": 100, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "/discover/toplist?id=19723756", "vod_id": "3375730419@PLAY BACK (『仮面ライダーゼッツ』主題歌)@悠太👉MP3", "flag": "网易云音乐", "play_id": "3375730419"}, "player": {"parse": null, "url": "", "valid": false, "reachable": null, "status_code": null, "final_url": "", "reason": null}}, {"spider": "耐视点播", "file": "耐视点播.txt", "success": false, "failed_stage": "category", "error": "分类视频列表为空", "traceback": null, "timings_ms": {"module_load": 4.437, "init": 0.001, "home": 0.001, "category": 12197.512, "detail": 0.0, "player": 0.0, "url_check": 0.0, "total": 20666.614}, "counts": {"classes": 6, "category_videos": 0, "detail_videos": 0, "episodes": 0}, "samples": {"tid": "2", "vod_id": null, "flag": null, "play_id": null}, "player": {"parse": null, "url": "", "valid": false, "reachable": null, "status_code": null, "final_url": "", "reason": null}}, {"spider": "腾讯视频", "file": "腾讯视频.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 5.469, "init": 0.001, "home": 1080.14, "category": 320.928, "detail": 733.056, "player": 0.003, "url_check": 934.188, "total": 3074.753}, "counts": {"classes": 7, "category_videos": 12, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "choice", "vod_id": "choice$mzc002009g0nh88", "flag": "腾讯视频", "play_id": "https://v.qq.com/x/cover/mzc002009g0nh88/w4102d4f4ur.html"}, "player": {"parse": 1, "url": "https://v.qq.com/x/cover/mzc002009g0nh88/w4102d4f4ur.html", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://v.qq.com/x/cover/mzc002009g0nh88/w4102d4f4ur.html", "reason": null}}, {"spider": "至臻", "file": "至臻.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 3.701, "init": 0.001, "home": 0.0, "category": 4305.003, "detail": 1918.802, "player": 0.003, "url_check": 1361.99, "total": 7589.965}, "counts": {"classes": 7, "category_videos": 72, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "/index.php/vod/detail/id/20398.html", "flag": "百度#至臻", "play_id": "https://pan.baidu.com/s/1KBoFekk6ROhuUssGJN2kpQ?pwd=rpgh"}, "player": {"parse": 0, "url": "https://pan.baidu.com/s/1KBoFekk6ROhuUssGJN2kpQ?pwd=rpgh", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.baidu.com/share/init?surl=KBoFekk6ROhuUssGJN2kpQ&pwd=rpgh", "reason": null}}, {"spider": "茶杯狐", "file": "茶杯狐.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 6.349, "init": 0.0, "home": 2664.151, "category": 3280.895, "detail": 3216.867, "player": 2612.592, "url_check": 257.76, "total": 31546.328}, "counts": {"classes": 4, "category_videos": 36, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "2", "vod_id": "detail/video/120755", "flag": "自营b37", "play_id": "play/120755-1-1"}, "player": {"parse": 0, "url": "https://eos-huhehaote-1.cmecloud.cn/dsp-ecpan-zone3/58a3518b4cce428ea0f816e2fcdf43b2?response-content-disposition=attachment%3Bfilename%3D%22gcj-%E7%88%B1%E6%83%85%E6%B2%A1%E6%9C%89%E7%A5%9E%E8%AF%9D01.mp4%22&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20260514T014633Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Credential=R2V91UGDM1447A0VTB86%2F20260514%2Fdefault%2Fs3%2Faws4_request&X-Amz-Signature=f49c4b34a2e1a2ea100eab9e4f4d23d0e59df12dca7ff85420d4ae84de46708e", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://eos-huhehaote-1.cmecloud.cn/dsp-ecpan-zone3/58a3518b4cce428ea0f816e2fcdf43b2?response-content-disposition=attachment%3Bfilename%3D%22gcj-%E7%88%B1%E6%83%85%E6%B2%A1%E6%9C%89%E7%A5%9E%E8%AF%9D01.mp4%22&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Date=20260514T014633Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Credential=R2V91UGDM1447A0VTB86%2F20260514%2Fdefault%2Fs3%2Faws4_request&X-Amz-Signature=f49c4b34a2e1a2ea100eab9e4f4d23d0e59df12dca7ff85420d4ae84de46708e", "reason": null}}, {"spider": "虎斑", "file": "虎斑.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 5.532, "init": 0.001, "home": 0.001, "category": 2236.869, "detail": 2862.318, "player": 0.012, "url_check": 1302.351, "total": 6407.679}, "counts": {"classes": 6, "category_videos": 72, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "/index.php/vod/detail/id/460085.html", "flag": "百度#虎斑", "play_id": "https://pan.baidu.com/s/1urbtY5SP9cjsG8lyFIQ08A?pwd=3007"}, "player": {"parse": 0, "url": "https://pan.baidu.com/s/1urbtY5SP9cjsG8lyFIQ08A?pwd=3007", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.baidu.com/share/init?surl=urbtY5SP9cjsG8lyFIQ08A&pwd=3007", "reason": null}}, {"spider": "蜡笔", "file": "蜡笔.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.242, "init": 0.001, "home": 0.001, "category": 2047.315, "detail": 2843.816, "player": 0.007, "url_check": 1401.002, "total": 6296.777}, "counts": {"classes": 7, "category_videos": 72, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "29", "vod_id": "/index.php/vod/detail/id/9231.html", "flag": "百度#蜡笔", "play_id": "https://pan.baidu.com/s/1LZC9v0B6ETfpQWooAqqxJA?pwd=jcx5"}, "player": {"parse": 0, "url": "https://pan.baidu.com/s/1LZC9v0B6ETfpQWooAqqxJA?pwd=jcx5", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.baidu.com/share/init?surl=LZC9v0B6ETfpQWooAqqxJA&pwd=jcx5", "reason": null}}, {"spider": "袋鼠影视", "file": "袋鼠影视.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 5.294, "init": 0.001, "home": 0.001, "category": 2140.196, "detail": 1793.954, "player": 1824.746, "url_check": 2894.496, "total": 8659.318}, "counts": {"classes": 4, "category_videos": 36, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "movie/index414832", "flag": "蓝光专线4", "play_id": "play/414832-1-0"}, "player": {"parse": 0, "url": "https://play.phimgood.com/20260512/26665_01fedae7/index.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://play.phimgood.com/20260512/26665_01fedae7/index.m3u8", "reason": null}}, {"spider": "视界", "file": "视界.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 6.525, "init": 0.0, "home": 3156.615, "category": 2441.375, "detail": 2325.784, "player": 3370.344, "url_check": 175.016, "total": 11477.023}, "counts": {"classes": 6, "category_videos": 30, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "20", "vod_id": "134841", "flag": "2K原⑤", "play_id": "parse_api=4fd521eae0c48923af390209e31299c2&url=3LHkCX7wk11bV0n8SjZyIARpN2AiAZk7sNw/ulxaonK1rvJNUPRK2pLLbJrjvxkA9+Zftu/bny0ZpVlY+vuanQ==&token=cf577de69a5cd58077b1b196ea008e67|《护心》天雁蜜语CP版|1"}, "player": {"parse": 0, "url": "https://hqm3u8.cfysoft.cc/29f3384d07b30c3103dc0de1db959e2d/6A054374/m3u8/resources/14b7ecf82797de0e110ee490da65d42f.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://hqm3u8.cfysoft.cc/29f3384d07b30c3103dc0de1db959e2d/6A054374/m3u8/resources/14b7ecf82797de0e110ee490da65d42f.m3u8", "reason": null}}, {"spider": "路漫漫", "file": "路漫漫.txt", "success": false, "failed_stage": "unexpected", "error": "HTTPSConnectionPool(host='www.lmm85.com', port=443): Max retries exceeded with url: /detail/7821.html (Caused by ConnectTimeoutError(<HTTPSConnection(host='www.lmm85.com', port=443) at 0x7a41e91d0a50>, 'Connection to www.lmm85.com timed out. (connect timeout=15)'))", "traceback": "Traceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connection.py\", line 204, in _new_conn\n sock = connection.create_connection(\n (self._dns_host, self.port),\n ...<2 lines>...\n socket_options=self.socket_options,\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/util/connection.py\", line 85, in create_connection\n raise err\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/util/connection.py\", line 73, in create_connection\n sock.connect(sa)\n ~~~~~~~~~~~~^^^^\nTimeoutError: timed out\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 787, in urlopen\n response = self._make_request(\n conn,\n ...<10 lines>...\n **response_kw,\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 488, in _make_request\n raise new_e\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 464, in _make_request\n self._validate_conn(conn)\n ~~~~~~~~~~~~~~~~~~~^^^^^^\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 1093, in _validate_conn\n conn.connect()\n ~~~~~~~~~~~~^^\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connection.py\", line 759, in connect\n self.sock = sock = self._new_conn()\n ~~~~~~~~~~~~~~^^\nurllib3.exceptions.ConnectTimeoutError: (<HTTPSConnection(host='www.lmm85.com', port=443) at 0x7a41e91d0a50>, 'Connection to www.lmm85.com timed out. (connect timeout=15)')\n\nThe above exception was the direct cause of the following exception:\n\nTraceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/requests/adapters.py\", line 645, in send\n resp = conn.urlopen(\n method=request.method,\n ...<9 lines>...\n chunked=chunked,\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connectionpool.py\", line 841, in urlopen\n retries = retries.increment(\n method, url, error=new_e, _pool=self, _stacktrace=sys.exc_info()[2]\n )\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/util/retry.py\", line 535, in increment\n raise MaxRetryError(_pool, url, reason) from reason # type: ignore[arg-type]\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\nurllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='www.lmm85.com', port=443): Max retries exceeded with url: /detail/7821.html (Caused by ConnectTimeoutError(<HTTPSConnection(host='www.lmm85.com', port=443) at 0x7a41e91d0a50>, 'Connection to www.lmm85.com timed out. (connect timeout=15)'))\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 716, in validate_spider_file\n _validate_from_tid(\n ~~~~~~~~~~~~~~~~~~^\n spider=spider,\n ^^^^^^^^^^^^^^\n ...<6 lines>...\n logger=logger,\n ^^^^^^^^^^^^^^\n )\n ^\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 428, in _validate_from_tid\n detail_result = _run_timed(result[\"timings_ms\"], \"detail\", spider.detailContent, clock, [vod_id])\n File \"/home/harold/workspace/atv-spiders/py/validate_spiders.py\", line 291, in _run_timed\n return func(*args, **kwargs)\n File \"/home/harold/workspace/tvbox-resources/py/路漫漫.txt\", line 172, in detailContent\n File \"/home/harold/workspace/tvbox-resources/py/路漫漫.txt\", line 80, in _get_html\nrequests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='www.lmm85.com', port=443): Max retries exceeded with url: /detail/7821.html (Caused by ConnectTimeoutError(<HTTPSConnection(host='www.lmm85.com', port=443) at 0x7a41e91d0a50>, 'Connection to www.lmm85.com timed out. (connect timeout=15)'))\n", "timings_ms": {"module_load": 4.553, "init": 0.001, "home": 0.0, "category": 2546.108, "detail": 15017.623, "player": 0.0, "url_check": 0.0, "total": 17571.666}, "counts": {"classes": 6, "category_videos": 20, "detail_videos": 0, "episodes": 0}, "samples": {"tid": "6", "vod_id": "detail/7821.html", "flag": null, "play_id": null}, "player": {"parse": null, "url": "", "valid": false, "reachable": null, "status_code": null, "final_url": "", "reason": null}}, {"spider": "酷我听书", "file": "酷我听书.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 5.523, "init": 0.001, "home": 383.358, "category": 92.461, "detail": 3636.109, "player": 150.662, "url_check": 73.808, "total": 4343.913}, "counts": {"classes": 4, "category_videos": 21, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "2", "vod_id": "13492273", "flag": "酷我听书", "play_id": "free|94448942"}, "player": {"parse": 0, "url": "http://lv.sycdn.kuwo.cn/a4dec454db45babc2af0d942868fa468/6a05436d/resource/30106/trackmedia/long/M500002ZiI9a1sctnS.mp3?bitrate$128&format$mp3&source$kwplayerhd_ar_4.3.0.8_tianbao_T1A_qirui.apk&type$convert_url_with_sign&user$&loginUid$", "valid": true, "reachable": true, "status_code": 200, "final_url": "http://lv.sycdn.kuwo.cn/a4dec454db45babc2af0d942868fa468/6a05436d/resource/30106/trackmedia/long/M500002ZiI9a1sctnS.mp3?bitrate$128&format$mp3&source$kwplayerhd_ar_4.3.0.8_tianbao_T1A_qirui.apk&type$convert_url_with_sign&user$&loginUid$", "reason": null}}, {"spider": "酷狗音乐", "file": "酷狗音乐.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 10.264, "init": 527.175, "home": 339.586, "category": 334.501, "detail": 337.838, "player": 369.199, "url_check": 80.25, "total": 1999.916}, "counts": {"classes": 12, "category_videos": 15, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "recommend", "vod_id": "760038253", "flag": "酷狗音乐", "play_id": "760038253"}, "player": {"parse": 0, "url": "http://fsdg360.tx.kugou.com/202605141137/16e0c7f90002b05e17f527ac6cca780b/v3/d90e9423d833314dbfcd752586b7fb43/yp/p_0_960157/ap1013_us0_mic85f71c379c462618de1399950957c33_pi6101_mx760038253_qu128_s417377594.mp3?ft=car_203559_10049&fts=b05bb02d44717442054bac7624ed9a29&ext=.mp3", "valid": true, "reachable": true, "status_code": 200, "final_url": "http://fsdg360.tx.kugou.com/202605141137/16e0c7f90002b05e17f527ac6cca780b/v3/d90e9423d833314dbfcd752586b7fb43/yp/p_0_960157/ap1013_us0_mic85f71c379c462618de1399950957c33_pi6101_mx760038253_qu128_s417377594.mp3?ft=car_203559_10049&fts=b05bb02d44717442054bac7624ed9a29&ext=.mp3", "reason": null}}, {"spider": "金牌", "file": "金牌.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 3.672, "init": 0.001, "home": 748.535, "category": 239.276, "detail": 237.987, "player": 248.017, "url_check": 562.098, "total": 2040.28}, "counts": {"classes": 4, "category_videos": 30, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "1", "vod_id": "143230", "flag": "金牌线路", "play_id": "143230@1271963"}, "player": {"parse": 0, "url": "https://ppvod011.blbtgg.com/splitOut/20260318/1267932/V20260318194542050871267932/index.m3u8?auth_key=1778729836-35092b8352514925befea08a995e64eb-0-05f4e0835539eeb45ecc3ee864b1a51b", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://ppvod011.blbtgg.com/splitOut/20260318/1267932/V20260318194542050871267932/index.m3u8?auth_key=1778729836-35092b8352514925befea08a995e64eb-0-05f4e0835539eeb45ecc3ee864b1a51b", "reason": null}}, {"spider": "闪电", "file": "闪电.txt", "success": false, "failed_stage": "category", "error": "分类视频列表为空", "traceback": null, "timings_ms": {"module_load": 3.72, "init": 0.001, "home": 0.001, "category": 1483.956, "detail": 0.0, "player": 0.0, "url_check": 0.0, "total": 3100.692}, "counts": {"classes": 5, "category_videos": 0, "detail_videos": 0, "episodes": 0}, "samples": {"tid": "2", "vod_id": null, "flag": null, "play_id": null}, "player": {"parse": null, "url": "", "valid": false, "reachable": null, "status_code": null, "final_url": "", "reason": null}}, {"spider": "飞快TV", "file": "飞快TV.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.772, "init": 0.001, "home": 0.001, "category": 5958.542, "detail": 4983.004, "player": 4258.592, "url_check": 2494.293, "total": 17700.113}, "counts": {"classes": 4, "category_videos": 40, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "/voddetail/239368.html", "flag": "高清31", "play_id": "/vodplay/239368-2-1.html"}, "player": {"parse": 0, "url": "https://cdn.vvvip-plays33.cc/20260513/13579_e13dd027/index.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://cdn.vvvip-plays33.cc/20260513/13579_e13dd027/index.m3u8", "reason": null}}, {"spider": "魔方APP", "file": "魔方APP.txt", "success": false, "failed_stage": "home", "error": "分类列表为空", "traceback": null, "timings_ms": {"module_load": 5.872, "init": 0.001, "home": 1630.72, "category": 0.0, "detail": 0.0, "player": 0.0, "url_check": 0.0, "total": 1636.804}, "counts": {"classes": 0, "category_videos": 0, "detail_videos": 0, "episodes": 0}, "samples": {"tid": null, "vod_id": null, "flag": null, "play_id": null}, "player": {"parse": null, "url": "", "valid": false, "reachable": null, "status_code": null, "final_url": "", "reason": null}}, {"spider": "麦田影院", "file": "麦田影院.txt", "success": false, "failed_stage": "url_check", "error": "HTTP 404", "traceback": null, "timings_ms": {"module_load": 3.95, "init": 0.001, "home": 0.001, "category": 1988.773, "detail": 1943.884, "player": 0.05, "url_check": 2173.464, "total": 12185.039}, "counts": {"classes": 6, "category_videos": 20, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "2", "vod_id": "155698", "flag": "LZ源", "play_id": "eyJ1cmwiOiJodHRwczovL3YubHpjZG4yOC5jb20vMjAyNTA5MjMvMjMyNl9hOWJmMjM0YS9pbmRleC5tM3U4IiwicGFyc2VfYXBpIjoiaHR0cHM6Ly9kZWwubXQzMjAuY29tL2x6ZmYucGhwP3VybD0iLCJoZWFkZXJzIjp7fSwidXNlcl9hZ2VudCI6IiJ9"}, "player": {"parse": 0, "url": "https://v.lzcdn28.com/20250923/2326_a9bf234a/index.m3u8", "valid": false, "reachable": false, "status_code": 404, "final_url": "https://v.lzcdn28.com/20250923/2326_a9bf234a/index.m3u8", "reason": "HTTP 404"}}, {"spider": "黑猫APP", "file": "黑猫APP.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.854, "init": 0.001, "home": 2742.734, "category": 1977.308, "detail": 1927.779, "player": 4563.643, "url_check": 102.112, "total": 18078.359}, "counts": {"classes": 5, "category_videos": 30, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "2", "vod_id": "93238", "flag": "🐈‍⬛高清线路", "play_id": "高清线路1@@direct@@66ddeb0b0fe39924c19b86fc5dcce841,3b70475bed39417a705e38a74d6ede8c,token+,1,1"}, "player": {"parse": 0, "url": "https://v3-dy-o.zjcdn.com/aeddb6f82a7df2f83a017f69ab1b0674/6a05a29b/video/tos/cn/tos-cn-v-5f73e7/o4oCFgLenmpTLBOeIbswrhIGAIf1EosXT15aIl/", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://v3-dy-o.zjcdn.com/aeddb6f82a7df2f83a017f69ab1b0674/6a05a29b/video/tos/cn/tos-cn-v-5f73e7/o4oCFgLenmpTLBOeIbswrhIGAIf1EosXT15aIl/", "reason": null}}]};
const STAGE_LABELS = {"module_load": "模块加载", "init": "初始化", "home": "首页分类", "category": "分类列表", "detail": "视频详情", "player": "播放地址", "url_check": "地址校验", "unexpected": "未预期异常", "total": "总耗时"};
const RAW_SPIDER_BASE_URL = "https://github.com/har01d5/tvbox/raw/refs/heads/master/py/";
const state = {
status: "all",
failedStage: "all",
keyword: "",
minDuration: "",
maxDuration: "",
sortKey: "spider",
sortDirection: "asc",
};
function escapeHtml(value) {
return String(value ?? "")
.replace(/&/g, "&amp;")
.replace(/</g, "&lt;")
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;");
}
function formatDuration(value) {
const numeric = Number(value ?? 0);
if (Number.isNaN(numeric)) {
return String(value ?? "");
}
if (numeric >= 1000) {
return `${Math.round((numeric / 1000) * 1000) / 1000}秒`;
}
return `${numeric}ms`;
}
function stageLabel(stage) {
return stage ? (STAGE_LABELS[stage] || stage) : "";
}
function spiderUrl(fileName) {
return RAW_SPIDER_BASE_URL + encodeURIComponent(String(fileName || ""));
}
function uniqueFailedStages(items) {
const values = new Set();
items.forEach((item) => {
if (item.failed_stage) {
values.add(item.failed_stage);
}
});
return [...values].sort((left, right) => stageLabel(left).localeCompare(stageLabel(right), "zh-Hans-CN"));
}
function sortValue(item, key) {
if (key === "status") {
return item.success ? 0 : 1;
}
if (key === "failed_stage") {
return stageLabel(item.failed_stage);
}
if (key === "spider") {
return item.spider || "";
}
return Number(item.timings_ms?.[key] ?? 0);
}
function applyFilters(items) {
return items.filter((item) => {
if (state.status === "success" && !item.success) {
return false;
}
if (state.status === "failed" && item.success) {
return false;
}
if (state.failedStage !== "all" && (item.failed_stage || "") !== state.failedStage) {
return false;
}
const haystack = `${item.spider || ""} ${item.file || ""}`.toLowerCase();
if (state.keyword && !haystack.includes(state.keyword.toLowerCase())) {
return false;
}
const total = Number(item.timings_ms?.total ?? 0);
if (state.minDuration !== "" && total < Number(state.minDuration)) {
return false;
}
if (state.maxDuration !== "" && total > Number(state.maxDuration)) {
return false;
}
return true;
});
}
function applySort(items) {
return [...items].sort((left, right) => {
const a = sortValue(left, state.sortKey);
const b = sortValue(right, state.sortKey);
const comparison = typeof a === "number" && typeof b === "number"
? a - b
: String(a).localeCompare(String(b), "zh-Hans-CN");
return state.sortDirection === "asc" ? comparison : -comparison;
});
}
function renderSummary(items) {
const success = items.filter((item) => item.success).length;
const failed = items.length - success;
document.getElementById("summary-line").textContent =
`当前显示 ${items.length} / ${report.results.length} 条,成功 ${success},失败 ${failed}`;
}
function renderRows(items) {
const tbody = document.getElementById("results-body");
if (!items.length) {
tbody.innerHTML = '<tr><td class="empty" colspan="13">当前筛选条件下没有结果</td></tr>';
return;
}
tbody.innerHTML = items.map((item) => {
const statusClass = item.success ? "success" : "failed";
const statusText = item.success ? "成功" : "失败";
return `
<tr>
<td><a href="${spiderUrl(item.file)}" target="_blank" rel="noreferrer">${escapeHtml(item.spider)}</a></td>
<td><span class="status ${statusClass}">${statusText}</span></td>
<td>${escapeHtml(stageLabel(item.failed_stage))}</td>
<td>${escapeHtml(formatDuration(item.timings_ms?.total ?? 0))}</td>
<td>${escapeHtml(formatDuration(item.timings_ms?.module_load ?? 0))}</td>
<td>${escapeHtml(formatDuration(item.timings_ms?.init ?? 0))}</td>
<td>${escapeHtml(formatDuration(item.timings_ms?.home ?? 0))}</td>
<td>${escapeHtml(formatDuration(item.timings_ms?.category ?? 0))}</td>
<td>${escapeHtml(formatDuration(item.timings_ms?.detail ?? 0))}</td>
<td>${escapeHtml(formatDuration(item.timings_ms?.player ?? 0))}</td>
<td>${escapeHtml(formatDuration(item.timings_ms?.url_check ?? 0))}</td>
<td>${escapeHtml(item.player?.url ?? "")}</td>
<td>${escapeHtml(item.error ?? "")}</td>
</tr>
`;
}).join("");
}
function updateSortIndicators() {
document.querySelectorAll("[data-sort-key]").forEach((button) => {
const indicator = button.querySelector(".sort-indicator");
if (!indicator) {
return;
}
if (button.dataset.sortKey !== state.sortKey) {
indicator.textContent = "";
return;
}
indicator.textContent = state.sortDirection === "asc" ? "▲" : "▼";
});
}
function rerender() {
const filtered = applyFilters(report.results);
const sorted = applySort(filtered);
renderSummary(sorted);
renderRows(sorted);
updateSortIndicators();
}
function initializeFilters() {
const statusFilter = document.getElementById("status-filter");
const stageFilter = document.getElementById("stage-filter");
const keywordFilter = document.getElementById("keyword-filter");
const minFilter = document.getElementById("duration-min-filter");
const maxFilter = document.getElementById("duration-max-filter");
const resetButton = document.getElementById("reset-filters");
statusFilter.innerHTML = [
'<option value="all">全部状态</option>',
'<option value="success">成功</option>',
'<option value="failed">失败</option>',
].join("");
stageFilter.innerHTML = ['<option value="all">全部阶段</option>']
.concat(uniqueFailedStages(report.results).map((stage) => `<option value="${escapeHtml(stage)}">${escapeHtml(stageLabel(stage))}</option>`))
.join("");
statusFilter.addEventListener("change", (event) => {
state.status = event.target.value;
rerender();
});
stageFilter.addEventListener("change", (event) => {
state.failedStage = event.target.value;
rerender();
});
keywordFilter.addEventListener("input", (event) => {
state.keyword = event.target.value.trim();
rerender();
});
minFilter.addEventListener("input", (event) => {
state.minDuration = event.target.value;
rerender();
});
maxFilter.addEventListener("input", (event) => {
state.maxDuration = event.target.value;
rerender();
});
resetButton.addEventListener("click", () => {
state.status = "all";
state.failedStage = "all";
state.keyword = "";
state.minDuration = "";
state.maxDuration = "";
statusFilter.value = "all";
stageFilter.value = "all";
keywordFilter.value = "";
minFilter.value = "";
maxFilter.value = "";
rerender();
});
document.querySelectorAll("[data-sort-key]").forEach((button) => {
button.addEventListener("click", () => {
const key = button.dataset.sortKey;
if (state.sortKey === key) {
state.sortDirection = state.sortDirection === "asc" ? "desc" : "asc";
} else {
state.sortKey = key;
state.sortDirection = "asc";
}
rerender();
});
});
}
function initializeSummaryCards() {
document.getElementById("generated-at").textContent = report.generated_at || "";
document.getElementById("max-workers").textContent = String(report.max_workers ?? "");
document.getElementById("total-count").textContent = String(report.summary?.total ?? 0);
document.getElementById("success-count").textContent = String(report.summary?.success ?? 0);
document.getElementById("failed-count").textContent = String(report.summary?.failed ?? 0);
document.getElementById("total-duration").textContent = formatDuration(report.total_duration_ms ?? 0);
}
initializeSummaryCards();
initializeFilters();
rerender();
</script>
</body>
</html>