563 lines
108 KiB
HTML
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-16T13:11:10+08:00", "max_workers": 16, "total_duration_ms": 22447.166, "summary": {"total": 73, "success": 57, "failed": 16, "success_rate": 0.7808, "stage_failures": {"module_load": 0, "init": 0, "home": 1, "category": 4, "detail": 0, "player": 1, "url_check": 2, "unexpected": 8}}, "results": [{"spider": "4K指南", "file": "4K指南.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 193.752, "init": 0.001, "home": 0.002, "category": 943.853, "detail": 444.612, "player": 0.004, "url_check": 148.646, "total": 1732.005}, "counts": {"classes": 5, "category_videos": 50, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "zuixin", "vod_id": "18385", "flag": "夸克网盘4k原盘", "play_id": "push://https://pan.quark.cn/s/386badc811b3"}, "player": {"parse": 0, "url": "https://pan.quark.cn/s/386badc811b3", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.quark.cn/s/386badc811b3", "reason": null}}, {"spider": "6V磁力", "file": "6V磁力.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 205.322, "init": 0.004, "home": 0.001, "category": 715.357, "detail": 686.701, "player": 0.002, "url_check": 0.044, "total": 1609.137}, "counts": {"classes": 12, "category_videos": 18, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "dianshiju/guoju", "vod_id": "/dianshiju/guoju/28754.html", "flag": "01-07.1080p.HD国语中字无水印.mkv", "play_id": "magnet:?xt=urn:btih:179e2e96aecc2ff52e16b81e3b3c1e89a6010b05&dn=%E4%B8%BB%E8%A7%9201-07"}, "player": {"parse": 0, "url": "magnet:?xt=urn:btih:179e2e96aecc2ff52e16b81e3b3c1e89a6010b05&dn=%E4%B8%BB%E8%A7%9201-07", "valid": true, "reachable": null, "status_code": null, "final_url": "magnet:?xt=urn:btih:179e2e96aecc2ff52e16b81e3b3c1e89a6010b05&dn=%E4%B8%BB%E8%A7%9201-07", "reason": "非 HTTP 地址,按协议格式通过"}}, {"spider": "AAZ音乐", "file": "AAZ音乐.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 192.74, "init": 0.001, "home": 528.554, "category": 182.097, "detail": 168.039, "player": 160.838, "url_check": 282.004, "total": 1516.526}, "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/252ea81911d044c8cb3cda91348af247/6a07fc6f/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": 244.656, "init": 0.001, "home": 0.0, "category": 401.873, "detail": 373.453, "player": 0.01, "url_check": 176.299, "total": 1197.417}, "counts": {"classes": 2, "category_videos": 24, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "1", "vod_id": "movie/8169.html", "flag": "PPnix", "play_id": "8169|1080P"}, "player": {"parse": 0, "url": "https://www.ppnix.com/info/m3u8/8169/1080P.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://www.ppnix.com/info/m3u8/8169/1080P.m3u8", "reason": null}}, {"spider": "QQ音乐", "file": "QQ音乐.txt", "success": false, "failed_stage": "unexpected", "error": "HTTPSConnectionPool(host='music.har01d.cn', port=443): Max retries exceeded with url: /api/playlist?id=9368093494&num=1000 (Caused by ConnectTimeoutError(<HTTPSConnection(host='music.har01d.cn', port=443) at 0x7a51e8760f50>, 'Connection to music.har01d.cn timed out. (connect timeout=10)'))", "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='music.har01d.cn', port=443) at 0x7a51e8760f50>, 'Connection to music.har01d.cn timed out. (connect timeout=10)')\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='music.har01d.cn', port=443): Max retries exceeded with url: /api/playlist?id=9368093494&num=1000 (Caused by ConnectTimeoutError(<HTTPSConnection(host='music.har01d.cn', port=443) at 0x7a51e8760f50>, 'Connection to music.har01d.cn timed out. (connect 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 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/QQ音乐.txt\", line 3228, in detailContent\n File \"/home/harold/workspace/tvbox-resources/py/QQ音乐.txt\", line 2063, in _get_json\nrequests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='music.har01d.cn', port=443): Max retries exceeded with url: /api/playlist?id=9368093494&num=1000 (Caused by ConnectTimeoutError(<HTTPSConnection(host='music.har01d.cn', port=443) at 0x7a51e8760f50>, 'Connection to music.har01d.cn timed out. (connect timeout=10)'))\n", "timings_ms": {"module_load": 185.415, "init": 0.009, "home": 0.003, "category": 705.727, "detail": 10011.895, "player": 0.0, "url_check": 0.0, "total": 10912.093}, "counts": {"classes": 6, "category_videos": 30, "detail_videos": 0, "episodes": 0}, "samples": {"tid": "playlist", "vod_id": "playlist:9368093494", "flag": null, "play_id": null}, "player": {"parse": null, "url": "", "valid": false, "reachable": null, "status_code": null, "final_url": "", "reason": null}}, {"spider": "YouTube", "file": "YouTube.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 149.132, "init": 0.004, "home": 0.054, "category": 686.457, "detail": 1100.518, "player": 0.004, "url_check": 1004.176, "total": 2944.851}, "counts": {"classes": 28, "category_videos": 19, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "cat_recommend", "vod_id": "yt:video:0SLXJa_q7xo", "flag": "YouTube", "play_id": "yt:video:0SLXJa_q7xo"}, "player": {"parse": 0, "url": "https://www.youtube.com/watch?v=0SLXJa_q7xo", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://www.youtube.com/watch?v=0SLXJa_q7xo", "reason": null}}, {"spider": "libvio", "file": "libvio.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 192.21, "init": 0.001, "home": 0.001, "category": 224.509, "detail": 207.779, "player": 0.006, "url_check": 188.262, "total": 815.667}, "counts": {"classes": 6, "category_videos": 48, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "index", "vod_id": "714893349", "flag": "夸克", "play_id": "https://pan.quark.cn/s/156f70b066a1||7"}, "player": {"parse": 0, "url": "https://pan.quark.cn/s/156f70b066a1||7", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.quark.cn/s/156f70b066a1%7C%7C7", "reason": null}}, {"spider": "youknow", "file": "youknow.txt", "success": false, "failed_stage": "unexpected", "error": "HTTPSConnectionPool(host='www.youknow.tv', port=443): Max retries exceeded with url: /label/new/ (Caused by ConnectTimeoutError(<HTTPSConnection(host='www.youknow.tv', port=443) at 0x7a51e901a490>, 'Connection to www.youknow.tv timed out. (connect timeout=10)'))", "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.youknow.tv', port=443) at 0x7a51e901a490>, 'Connection to www.youknow.tv timed out. (connect timeout=10)')\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.youknow.tv', port=443): Max retries exceeded with url: /label/new/ (Caused by ConnectTimeoutError(<HTTPSConnection(host='www.youknow.tv', port=443) at 0x7a51e901a490>, 'Connection to www.youknow.tv timed out. (connect 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/youknow.txt\", line 276, in categoryContent\n File \"/home/harold/workspace/tvbox-resources/py/youknow.txt\", line 139, in _request_html\nrequests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='www.youknow.tv', port=443): Max retries exceeded with url: /label/new/ (Caused by ConnectTimeoutError(<HTTPSConnection(host='www.youknow.tv', port=443) at 0x7a51e901a490>, 'Connection to www.youknow.tv timed out. (connect timeout=10)'))\n", "timings_ms": {"module_load": 155.449, "init": 0.001, "home": 0.0, "category": 10065.944, "detail": 0.0, "player": 0.0, "url_check": 0.0, "total": 10223.183}, "counts": {"classes": 7, "category_videos": 0, "detail_videos": 0, "episodes": 0}, "samples": {"tid": "index", "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": 204.52, "init": 0.004, "home": 0.001, "category": 781.225, "detail": 806.034, "player": 0.003, "url_check": 1006.643, "total": 2799.749}, "counts": {"classes": 5, "category_videos": 42, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "492461", "flag": "百度1", "play_id": "https://pan.baidu.com/s/1MZa4NhXR02WdMOXlmINHCA?pwd=Yu66"}, "player": {"parse": 0, "url": "https://pan.baidu.com/s/1MZa4NhXR02WdMOXlmINHCA?pwd=Yu66", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.baidu.com/share/init?surl=MZa4NhXR02WdMOXlmINHCA&pwd=Yu66", "reason": null}}, {"spider": "不太灵", "file": "不太灵.txt", "success": false, "failed_stage": "player", "error": "playerContent 未返回播放地址", "traceback": null, "timings_ms": {"module_load": 182.013, "init": 0.001, "home": 462.112, "category": 645.236, "detail": 588.073, "player": 0.011, "url_check": 0.0, "total": 3214.259}, "counts": {"classes": 5, "category_videos": 25, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "2", "vod_id": "26671380", "flag": "aliyun#1", "play_id": "aliyun"}, "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": 182.963, "init": 0.001, "home": 145.952, "category": 131.406, "detail": 1114.113, "player": 0.005, "url_check": 509.231, "total": 2089.215}, "counts": {"classes": 5, "category_videos": 28, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "home", "vod_id": "song:hnwknhecdh", "flag": "世纪音乐", "play_id": "music:hnwknhecdh"}, "player": {"parse": 0, "url": "https://www.4c44.com/data/down.php?ac=music&id=hnwknhecdh", "valid": true, "reachable": true, "status_code": 200, "final_url": "http://m701.music.126.net/20260516133612/aeafa0c6b5884702546bdbfd5c701d11/jdymusic/obj/wo3DlMOGwrbDjj7DisKw/30604420101/cfec/f5a3/5289/0f2f4f7c7fc21af97488002028d1c85a.mp3?vuutv=bO7EFNGXLRBFOccR9/AoYXoe9jm0u1m1IH4MLNEBiPZQUDrNSrhSaau2WKGVHUyIsnFXIfcA1LCSofeU66VyMfcyNUZCQAawCsnE/CRpoe0=", "reason": null}}, {"spider": "两个BT", "file": "两个BT.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 206.952, "init": 0.001, "home": 0.001, "category": 405.005, "detail": 322.728, "player": 610.302, "url_check": 422.65, "total": 1970.909}, "counts": {"classes": 14, "category_videos": 24, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "zgjun", "vod_id": "ch45x6dqu", "flag": "两个BT", "play_id": "eyJwaWQiOiIvcGxheS9jaDQ1eDZkcXUiLCJzaWQiOiJjaDQ1eDZkcXUiLCJuYW1lIjoiMSJ9"}, "player": {"parse": 0, "url": "https://zijieapi.douyinbyte.com/m3u8/dfff0a1ca15771c26928fffcf085471c.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://zijieapi.douyinbyte.com/m3u8/dfff0a1ca15771c26928fffcf085471c.m3u8", "reason": null}}, {"spider": "乌云影视", "file": "乌云影视.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 186.179, "init": 0.001, "home": 251.98, "category": 251.085, "detail": 966.696, "player": 0.02, "url_check": 1920.258, "total": 3578.452}, "counts": {"classes": 7, "category_videos": 24, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "movie", "vod_id": "483203", "flag": "乌云影视", "play_id": "eyJtZWRpYUlkIjogIjQ4MzIwMyIsICJzZWFzb25ObyI6IDEsICJlcE5vIjogMSwgInZpZGVvSWQiOiAxNTc2MjgzMiwgInBsYXlVcmwiOiAiaHR0cHM6Ly9kMWpkbm1rYzFuNWNuNC5jbG91ZGZyb250Lm5ldC9nZW5fb3ZlcnNlYXMvaHR0cHM6Ly9zMi5iZmxsdmlwLmNvbS92aWRlby95YW54aWF4aW5nL2E2ZWY4NTRjMGMxZi9pbmRleC5tM3U4IiwgIm5hbWUiOiAi56ysMembhiDpq5jmuIUifQ"}, "player": {"parse": 0, "url": "https://d1jdnmkc1n5cn4.cloudfront.net/gen_overseas/https://s2.bfllvip.com/video/yanxiaxing/a6ef854c0c1f/index.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://d1jdnmkc1n5cn4.cloudfront.net/hls_overseas/1bb3c4fede039f704b0f85f737d74c66a8222b9a.m3u8", "reason": null}}, {"spider": "乐兔", "file": "乐兔.txt", "success": false, "failed_stage": "category", "error": "分类视频列表为空", "traceback": null, "timings_ms": {"module_load": 190.904, "init": 0.001, "home": 0.0, "category": 209.992, "detail": 0.0, "player": 0.0, "url_check": 0.0, "total": 643.288}, "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": "二小", "file": "二小.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 180.656, "init": 0.001, "home": 0.002, "category": 713.331, "detail": 371.828, "player": 0.004, "url_check": 1435.435, "total": 2708.735}, "counts": {"classes": 4, "category_videos": 72, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "12390", "flag": "百度#二小", "play_id": "https://pan.baidu.com/s/1Ni2WmLFmGqJdlbxaZrTAOQ?pwd=b35h"}, "player": {"parse": 0, "url": "https://pan.baidu.com/s/1Ni2WmLFmGqJdlbxaZrTAOQ?pwd=b35h", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.baidu.com/share/init?surl=Ni2WmLFmGqJdlbxaZrTAOQ&pwd=b35h", "reason": null}}, {"spider": "人人电影", "file": "人人电影.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 178.449, "init": 0.001, "home": 0.001, "category": 518.418, "detail": 391.529, "player": 0.007, "url_check": 1181.085, "total": 2272.636}, "counts": {"classes": 4, "category_videos": 10, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "movie/list_2", "vod_id": "/movie/2026/0515/59195.html", "flag": "baidu", "play_id": "https://pan.baidu.com/s/1EYkX9qPq7BgcTSulWemE8Q?pwd=zbtf"}, "player": {"parse": 0, "url": "https://pan.baidu.com/s/1EYkX9qPq7BgcTSulWemE8Q?pwd=zbtf", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.baidu.com/share/init?surl=EYkX9qPq7BgcTSulWemE8Q&pwd=zbtf", "reason": null}}, {"spider": "人人视频", "file": "人人视频.txt", "success": false, "failed_stage": "url_check", "error": "HTTP 403", "traceback": null, "timings_ms": {"module_load": 5.441, "init": 0.001, "home": 161.595, "category": 260.256, "detail": 218.633, "player": 334.78, "url_check": 1814.663, "total": 3887.441}, "counts": {"classes": 4, "category_videos": 30, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "MOVIE", "vod_id": "57046", "flag": "人人专线", "play_id": "57046@382015"}, "player": {"parse": 0, "url": "https://a3fkpcul3b4qlid.302.fledgecloud.com:56782/zj-302-cdn.bwcgee.cn/c074943c4e6d71f18ed75017f0e90402/df3c0578d329457b9265317e359bce4a-0839441ca402de22c840b03b4e64e0d2-ld.mp4?auth_key=1778922673-afbdf0393d38559758cf37dbfbca2fa8-0-1105b891d5968557f963c9f798fdf2d2&clientType=web_pc&clientVersion=1.0.0&parseUsage=PLAY&uid=0&rk=8f5c3e539b9d48adb05c71fceebf7672&hevc=false&seasonId=57046", "valid": false, "reachable": false, "status_code": 403, "final_url": "https://a3fkpcul3b4qlid.302.fledgecloud.com:56782/zj-302-cdn.bwcgee.cn/c074943c4e6d71f18ed75017f0e90402/df3c0578d329457b9265317e359bce4a-0839441ca402de22c840b03b4e64e0d2-ld.mp4?auth_key=1778922673-afbdf0393d38559758cf37dbfbca2fa8-0-1105b891d5968557f963c9f798fdf2d2&clientType=web_pc&clientVersion=1.0.0&parseUsage=PLAY&uid=0&rk=8f5c3e539b9d48adb05c71fceebf7672&hevc=false&seasonId=57046", "reason": "HTTP 403"}}, {"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¶ms=%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 0x7a51e8de20d0>, '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 0x7a51e8de20d0>, '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¶ms=%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 0x7a51e8de20d0>, '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 249, 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¶ms=%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 0x7a51e8de20d0>, 'Connection to www.youku.com timed out. (connect timeout=5)'))\n", "timings_ms": {"module_load": 8.258, "init": 0.001, "home": 0.001, "category": 5007.613, "detail": 0.0, "player": 0.0, "url_check": 0.0, "total": 5019.403}, "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": 4.594, "init": 0.001, "home": 0.001, "category": 1039.611, "detail": 896.11, "player": 0.005, "url_check": 143.202, "total": 2084.233}, "counts": {"classes": 4, "category_videos": 24, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "series", "vod_id": "movie/berlin-season-2", "flag": "quark", "play_id": "https://pan.quark.cn/s/e40d5674c4c7"}, "player": {"parse": 0, "url": "https://pan.quark.cn/s/e40d5674c4c7", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.quark.cn/s/e40d5674c4c7", "reason": null}}, {"spider": "修罗", "file": "修罗.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 6.988, "init": 0.001, "home": 0.001, "category": 663.145, "detail": 197.062, "player": 997.43, "url_check": 532.914, "total": 2398.72}, "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/4835CE1E44811441B72371F165F6BA1CA291E443A7E744390862F036CC1FBF27", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://lf26-imcloud-file-sign.bytetos.com/ad-penny-bucket/o0EEIAAAt4uBCWDq8FAdfNTiQIzRVEAgCeOhCd?x-expires=1778911784&x-signature=Cb84kM%2FR%2FoO4wrYFSNdq%2Ftp9Mu8%3D", "reason": null}}, {"spider": "凡客TV", "file": "凡客TV.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.476, "init": 0.0, "home": 0.0, "category": 1057.984, "detail": 1252.218, "player": 1785.464, "url_check": 2777.125, "total": 6877.608}, "counts": {"classes": 8, "category_videos": 32, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "349f1d20b76a19ec", "flag": "高速线路", "play_id": "{\"movie_id\":\"349f1d20b76a19ec\",\"link_id\":\"905e744d9532250930828b84573fc278\",\"line_id\":\"line1\",\"line_name\":\"高速线路\",\"episode_name\":\"1080p\",\"type\":\"switch\",\"page\":\"https://fktv.me/movie/detail/349f1d20b76a19ec\"}"}, "player": {"parse": 0, "url": "https://fktv.me/ysapi/m3u8/p/c2ba6605d8bb9b11fcaf44b11b4c8f49.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://fktv.me/ysapi/m3u8/p/c2ba6605d8bb9b11fcaf44b11b4c8f49.m3u8", "reason": null}}, {"spider": "剧圈圈", "file": "剧圈圈.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 5.247, "init": 0.001, "home": 0.001, "category": 737.03, "detail": 637.441, "player": 1921.559, "url_check": 625.304, "total": 3927.052}, "counts": {"classes": 5, "category_videos": 16, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "dianying", "vod_id": "62669", "flag": "BF备用", "play_id": "play/62669-3-1"}, "player": {"parse": 1, "url": "https://www.jqqzx.cc/play/62669-3-1.html", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://www.jqqzx.one/play/62669-3-1.html", "reason": null}}, {"spider": "剧迷", "file": "剧迷.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.464, "init": 0.001, "home": 0.001, "category": 194.063, "detail": 417.676, "player": 396.816, "url_check": 1161.415, "total": 2175.293}, "counts": {"classes": 6, "category_videos": 151, "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.282, "init": 0.001, "home": 2797.485, "category": 243.701, "detail": 677.379, "player": 0.002, "url_check": 92.331, "total": 3815.545}, "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.477, "init": 403.444, "home": 0.004, "category": 167.185, "detail": 154.021, "player": 0.002, "url_check": 162.227, "total": 891.342}, "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/9e546b70dcfd"}, "player": {"parse": 0, "url": "https://pan.quark.cn/s/9e546b70dcfd", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.quark.cn/s/9e546b70dcfd", "reason": null}}, {"spider": "听书", "file": "听书.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 3.804, "init": 76.257, "home": 0.001, "category": 172.54, "detail": 1733.584, "player": 274.267, "url_check": 106.131, "total": 2367.232}, "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=e06a15cfafb4e203dfa94e0d0e1b2169&buy_key=FM&token=8051×tamp=1778908275&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=e06a15cfafb4e203dfa94e0d0e1b2169&buy_key=FM&token=8051×tamp=1778908275&duration=453", "reason": null}}, {"spider": "听友FM", "file": "听友FM.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 6.611, "init": 0.0, "home": 380.758, "category": 322.607, "detail": 666.63, "player": 442.445, "url_check": 135.316, "total": 1955.598}, "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=1778907926&sign=9fbb335ccca0f2c9e068ca22af3f06e9", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://file.hgeuz.cn/stream/eJwANwDI_wJVZgVKIIrU0ECux-GJ1PSt38ahythCqsH-r9TAQ4rj5F94rOjbQKjk063xyIX2z3hfeGcIHF4BAAD__5DtISY.?ts=1778907926&sign=9fbb335ccca0f2c9e068ca22af3f06e9", "reason": null}}, {"spider": "咕咕动漫", "file": "咕咕动漫.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 9.43, "init": 0.004, "home": 464.568, "category": 429.958, "detail": 417.401, "player": 1530.104, "url_check": 124.993, "total": 2977.104}, "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://p3-bot-workflow-sign.byteimg.com/tos-cn-i-mdko3gqilj/c87332e45fc54a998855db93afefd79b~tplv-mdko3gqilj-image.image?rk3s=81d4c505&x-expires=1810012275&x-signature=iTDnkNP1%2BdeRIoq7V9zRukncjyU%3D", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://p3-bot-workflow-sign.byteimg.com/tos-cn-i-mdko3gqilj/c87332e45fc54a998855db93afefd79b~tplv-mdko3gqilj-image.image?rk3s=81d4c505&x-expires=1810012275&x-signature=iTDnkNP1%2BdeRIoq7V9zRukncjyU%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": 9.652, "init": 0.001, "home": 0.001, "category": 329.668, "detail": 0.0, "player": 0.0, "url_check": 0.0, "total": 341.644}, "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": false, "failed_stage": "unexpected", "error": "HTTPSConnectionPool(host='www.zxzjhd.com', port=443): Max retries exceeded with url: /vodshow/1--------1---.html (Caused by ConnectTimeoutError(<HTTPSConnection(host='www.zxzjhd.com', port=443) at 0x7a51e84be850>, 'Connection to www.zxzjhd.com timed out. (connect timeout=10)'))", "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.zxzjhd.com', port=443) at 0x7a51e84be850>, 'Connection to www.zxzjhd.com timed out. (connect timeout=10)')\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.zxzjhd.com', port=443): Max retries exceeded with url: /vodshow/1--------1---.html (Caused by ConnectTimeoutError(<HTTPSConnection(host='www.zxzjhd.com', port=443) at 0x7a51e84be850>, 'Connection to www.zxzjhd.com timed out. (connect 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 301, in categoryContent\n File \"/home/harold/workspace/tvbox-resources/py/在线之家.txt\", line 245, in _request_html\nrequests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='www.zxzjhd.com', port=443): Max retries exceeded with url: /vodshow/1--------1---.html (Caused by ConnectTimeoutError(<HTTPSConnection(host='www.zxzjhd.com', port=443) at 0x7a51e84be850>, 'Connection to www.zxzjhd.com timed out. (connect timeout=10)'))\n", "timings_ms": {"module_load": 11.861, "init": 0.001, "home": 0.001, "category": 10011.662, "detail": 0.0, "player": 0.0, "url_check": 0.0, "total": 10025.096}, "counts": {"classes": 6, "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": 5.469, "init": 0.001, "home": 0.001, "category": 404.341, "detail": 359.621, "player": 0.003, "url_check": 910.475, "total": 1680.885}, "counts": {"classes": 6, "category_videos": 72, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "9461", "flag": "百度#多多", "play_id": "https://pan.baidu.com/s/1pwIj24HVw6lpAUcUrJE-QQ?pwd=yyds"}, "player": {"parse": 0, "url": "https://pan.baidu.com/s/1pwIj24HVw6lpAUcUrJE-QQ?pwd=yyds", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.baidu.com/share/init?surl=pwIj24HVw6lpAUcUrJE-QQ&pwd=yyds", "reason": null}}, {"spider": "如意资源", "file": "如意资源.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 5.105, "init": 0.0, "home": 0.005, "category": 745.539, "detail": 316.03, "player": 0.004, "url_check": 1745.956, "total": 2813.514}, "counts": {"classes": 6, "category_videos": 20, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "77198", "flag": "rym3u8", "play_id": "https://svip.ryiplay18.com/20260514/6398_d2dc5cf6/index.m3u8"}, "player": {"parse": 0, "url": "https://svip.ryiplay18.com/20260514/6398_d2dc5cf6/index.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://svip.ryiplay18.com/20260514/6398_d2dc5cf6/index.m3u8", "reason": null}}, {"spider": "布布影视", "file": "布布影视.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 5.175, "init": 0.001, "home": 0.001, "category": 649.502, "detail": 634.489, "player": 1181.694, "url_check": 327.721, "total": 2799.189}, "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=20260516T051116Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Credential=AH4RWOMWLEL7ROYSF2S5%2F20260516%2Fcidc-rp-2006%2Fs3%2Faws4_request&t=2&u=1261698636582652615&ot=family&oi=1263000283947275586&f=FibTFWRt8ncqZsYDWQP5LF5BI3oB5_LXK&ext=eyJ1dCI6MX0%3D&X-Amz-Signature=ed64cece48eb006c0776af80f2a12c74d8c3cf500bc69deff7f837bc69761514", "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=20260516T051116Z&X-Amz-SignedHeaders=host&X-Amz-Expires=86400&X-Amz-Credential=AH4RWOMWLEL7ROYSF2S5%2F20260516%2Fcidc-rp-2006%2Fs3%2Faws4_request&t=2&u=1261698636582652615&ot=family&oi=1263000283947275586&f=FibTFWRt8ncqZsYDWQP5LF5BI3oB5_LXK&ext=eyJ1dCI6MX0%3D&X-Amz-Signature=ed64cece48eb006c0776af80f2a12c74d8c3cf500bc69deff7f837bc69761514", "reason": null}}, {"spider": "微观短剧", "file": "微观短剧.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 3.919, "init": 0.022, "home": 172.877, "category": 264.3, "detail": 361.362, "player": 0.002, "url_check": 2651.963, "total": 3455.082}, "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=1778908275&sign=00e25cfdc16e727b671f5f50b68a775d"}, "player": {"parse": 0, "url": "https://tv-video.cdn.drama.9ddm.com/22/A0/22A0BFFF46651CC23355B115F6307653.mp4?timestamp=1778908275&sign=00e25cfdc16e727b671f5f50b68a775d", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://tv-video.cdn.drama.9ddm.com/22/A0/22A0BFFF46651CC23355B115F6307653.mp4?timestamp=1778908275&sign=00e25cfdc16e727b671f5f50b68a775d", "reason": null}}, {"spider": "新韩剧网", "file": "新韩剧网.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.925, "init": 0.001, "home": 0.0, "category": 514.54, "detail": 434.172, "player": 393.387, "url_check": 986.739, "total": 2334.351}, "counts": {"classes": 5, "category_videos": 16, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "1", "vod_id": "3613", "flag": "在线云播", "play_id": "3613_1_1"}, "player": {"parse": 0, "url": "https://player.yzzyvip-35.com/20260331/3348_333cb763/index.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://player.yzzyvip-35.com/20260331/3348_333cb763/index.m3u8", "reason": null}}, {"spider": "星星短剧", "file": "星星短剧.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 9.968, "init": 0.001, "home": 0.001, "category": 419.0, "detail": 621.6, "player": 0.002, "url_check": 161.182, "total": 1212.365}, "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.88, "init": 0.001, "home": 0.0, "category": 260.144, "detail": 201.798, "player": 0.018, "url_check": 231.392, "total": 697.664}, "counts": {"classes": 7, "category_videos": 72, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "25", "vod_id": "7908", "flag": "115#木偶", "play_id": "https://115cdn.com/s/swf27dt36dh?password=y804"}, "player": {"parse": 0, "url": "https://115cdn.com/s/swf27dt36dh?password=y804", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://115cdn.com/s/swf27dt36dh?password=y804", "reason": null}}, {"spider": "樱花动漫", "file": "樱花动漫.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 9.999, "init": 0.001, "home": 0.001, "category": 2204.496, "detail": 1328.935, "player": 1352.87, "url_check": 1888.512, "total": 6785.56}, "counts": {"classes": 4, "category_videos": 36, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "guoman", "vod_id": "12", "flag": "高清", "play_id": "/play/12-1-1/"}, "player": {"parse": 0, "url": "https://yzzy.play-cdn2.com/20220408/8953_8c6f0de5/index.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://yzzy.play-cdn2.com/20220408/8953_8c6f0de5/index.m3u8", "reason": null}}, {"spider": "橘子TV", "file": "橘子TV.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.014, "init": 422.598, "home": 319.241, "category": 354.834, "detail": 352.466, "player": 697.32, "url_check": 1008.486, "total": 3159.877}, "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=37d4a29010d3f9f4684a75e43763db62&t=1778908277", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://usaydd.0rvgx279.com/m3u87/share/7404387/7599927/20260511/161239/720/index.m3u8?sign=37d4a29010d3f9f4684a75e43763db62&t=1778908277", "reason": null}}, {"spider": "欧歌", "file": "欧歌.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.834, "init": 0.001, "home": 0.001, "category": 237.047, "detail": 338.442, "player": 0.011, "url_check": 999.197, "total": 1580.346}, "counts": {"classes": 6, "category_videos": 72, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "29949", "flag": "百度", "play_id": "https://pan.baidu.com/s/1jrvd3aW7MiXaZOm5AOpXfw?pwd=8888"}, "player": {"parse": 0, "url": "https://pan.baidu.com/s/1jrvd3aW7MiXaZOm5AOpXfw?pwd=8888", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.baidu.com/share/init?surl=jrvd3aW7MiXaZOm5AOpXfw&pwd=8888", "reason": null}}, {"spider": "河马短剧", "file": "河马短剧.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 5.03, "init": 0.001, "home": 353.697, "category": 617.891, "detail": 1145.959, "player": 0.026, "url_check": 44.3, "total": 2167.474}, "counts": {"classes": 10, "category_videos": 10, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "462", "vod_id": "41000188058", "flag": "河马剧场", "play_id": "https://dzzt-video.cbread.cn/6bd9c9f35ef20a02eef211bba5414a49/6a094b50/81/8x5/85x0/850x8/85088100014/612504118_1/612504118.720p.narrowv3.mp4"}, "player": {"parse": 0, "url": "https://dzzt-video.cbread.cn/6bd9c9f35ef20a02eef211bba5414a49/6a094b50/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/6bd9c9f35ef20a02eef211bba5414a49/6a094b50/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": 6.346, "init": 0.001, "home": 0.001, "category": 343.497, "detail": 176.87, "player": 0.003, "url_check": 1437.487, "total": 1964.864}, "counts": {"classes": 5, "category_videos": 48, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "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.273, "init": 0.006, "home": 120.761, "category": 247.378, "detail": 365.995, "player": 380.536, "url_check": 93.438, "total": 1215.986}, "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://43.248.100.143:9090/nby/m3u8/getM3u8?name=jx.91by.top&time=1778908277413&url=NBY-e84585334a25c5b49078dfac81549a0b.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "http://43.248.100.143:9090/nby/m3u8/getM3u8?name=jx.91by.top&time=1778908277413&url=NBY-e84585334a25c5b49078dfac81549a0b.m3u8", "reason": null}}, {"spider": "爱奇艺", "file": "爱奇艺.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 12.817, "init": 0.02, "home": 4095.15, "category": 416.878, "detail": 165.246, "player": 0.001, "url_check": 109.404, "total": 4800.453}, "counts": {"classes": 11, "category_videos": 60, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "pcw:1", "vod_id": "pcw:1$3493933623185100", "flag": "爱奇艺", "play_id": "http://www.iqiyi.com/v_xkicyw128w.html"}, "player": {"parse": 1, "url": "http://www.iqiyi.com/v_xkicyw128w.html", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://www.iqiyi.com/v_xkicyw128w.html", "reason": null}}, {"spider": "独播库", "file": "独播库.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 7.598, "init": 0.001, "home": 0.002, "category": 356.117, "detail": 337.205, "player": 340.625, "url_check": 223.401, "total": 1265.941}, "counts": {"classes": 6, "category_videos": 48, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "index", "vod_id": "144592", "flag": "独播库", "play_id": "144592-1-1"}, "player": {"parse": 0, "url": "https://vid.dbokutv.com/20260502/ppotb62-S71lT2yliZApDBSvkYzBsrmD3fpCJ4nBsnsRsGlR7XgBMnuOdajC34jC34rD4L5CaCvBcrmD0/chunklist.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://vid.dbokutv.com/20260502/ppotb62-S71lT2yliZApDBSvkYzBsrmD3fpCJ4nBsnsRsGlR7XgBMnuOdajC34jC34rD4L5CaCvBcrmD0/chunklist.m3u8", "reason": null}}, {"spider": "玩偶哥哥", "file": "玩偶哥哥.txt", "success": false, "failed_stage": "category", "error": "分类视频列表为空", "traceback": null, "timings_ms": {"module_load": 3.886, "init": 0.001, "home": 0.0, "category": 127.852, "detail": 0.0, "player": 0.0, "url_check": 0.0, "total": 249.936}, "counts": {"classes": 8, "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": false, "failed_stage": "unexpected", "error": "all domains failed", "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 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 475, in categoryContent\n File \"/home/harold/workspace/tvbox-resources/py/玩偶聚合.txt\", line 407, in _request_with_failover\nRuntimeError: all domains failed\n", "timings_ms": {"module_load": 6.396, "init": 0.0, "home": 0.045, "category": 344.184, "detail": 0.0, "player": 0.0, "url_check": 0.0, "total": 351.786}, "counts": {"classes": 10, "category_videos": 0, "detail_videos": 0, "episodes": 0}, "samples": {"tid": "site_wanou", "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": 8.453, "init": 0.001, "home": 0.019, "category": 537.748, "detail": 1034.126, "player": 343.089, "url_check": 128.11, "total": 2052.659}, "counts": {"classes": 5, "category_videos": 30, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "1", "vod_id": "137092", "flag": "1080", "play_id": "vod_d_id=137092&vurl_id=3734630&domain_type=8&resolution=1080&type=play"}, "player": {"parse": 0, "url": "https://vd.hxcztech.com/7e2f175f8077c380c89f4249dc43a57d/20260516131118/decry/vd/20260516/MTM3MjdlY2U1MmR/105709/2178_1080/aac/h264/hls/decrypt/index.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://vd.hxcztech.com/7e2f175f8077c380c89f4249dc43a57d/20260516131118/decry/vd/20260516/MTM3MjdlY2U1MmR/105709/2178_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": 5.757, "init": 0.001, "home": 397.815, "category": 252.772, "detail": 662.336, "player": 365.495, "url_check": 42.006, "total": 1726.698}, "counts": {"classes": 29, "category_videos": 9, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "3", "vod_id": "10284595040762396431", "flag": "百度短剧", "play_id": "4723147730512611191|||10284595040762396431"}, "player": {"parse": 0, "url": "http://vd3.bdstatic.com/mda-rgu31fx13xnschwc/1080p/mv_cae264_backtrack_1080p_normal/1753858859061604699/mda-rgu31fx13xnschwc.mp4?v_from_s=haokan-ui-video-hna", "valid": true, "reachable": true, "status_code": 200, "final_url": "http://vd3.bdstatic.com/mda-rgu31fx13xnschwc/1080p/mv_cae264_backtrack_1080p_normal/1753858859061604699/mda-rgu31fx13xnschwc.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": 3.873, "init": 0.001, "home": 298.469, "category": 262.909, "detail": 290.554, "player": 0.02, "url_check": 138.772, "total": 995.407}, "counts": {"classes": 8, "category_videos": 30, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "?tagId=39765285016165", "vod_id": "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": 9.826, "init": 0.001, "home": 0.001, "category": 197.024, "detail": 185.365, "player": 192.451, "url_check": 1087.232, "total": 1672.853}, "counts": {"classes": 4, "category_videos": 20, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "/", "vod_id": "117684", "flag": "百度1", "play_id": "push://https://www.seedhub.cc/link_start/?redirect_to=pan_id_576185&movie_title=▶️▶️▶️【挽救计划】【4K 1080P】更新于 ✅ 今天"}, "player": {"parse": 0, "url": "https://pan.baidu.com/s/1e6bRvilOqU11I0aregqndA?pwd=ojmk", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.baidu.com/share/init?surl=e6bRvilOqU11I0aregqndA&pwd=ojmk", "reason": null}}, {"spider": "盘链", "file": "盘链.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 9.349, "init": 0.032, "home": 0.001, "category": 988.429, "detail": 172.332, "player": 0.002, "url_check": 1187.62, "total": 2358.249}, "counts": {"classes": 5, "category_videos": 30, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "0", "vod_id": "75716", "flag": "百度", "play_id": "push://https://pan.baidu.com/s/1rbhXV3rLNKd1wVta_hMYnw?pwd=8888"}, "player": {"parse": 0, "url": "https://pan.baidu.com/s/1rbhXV3rLNKd1wVta_hMYnw?pwd=8888", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.baidu.com/share/init?surl=rbhXV3rLNKd1wVta_hMYnw&pwd=8888", "reason": null}}, {"spider": "短剧优选", "file": "短剧优选.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 18.236, "init": 435.724, "home": 0.087, "category": 487.975, "detail": 317.895, "player": 0.002, "url_check": 45.269, "total": 1306.308}, "counts": {"classes": 11, "category_videos": 72, "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.804, "init": 0.0, "home": 0.0, "category": 579.581, "detail": 201.918, "player": 0.005, "url_check": 163.612, "total": 951.085}, "counts": {"classes": 2, "category_videos": 20, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "1", "vod_id": "https://sm3.cc/?id=50711", "flag": "夸克", "play_id": "https://pan.quark.cn/s/9bad9384f9b6"}, "player": {"parse": 0, "url": "https://pan.quark.cn/s/9bad9384f9b6", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.quark.cn/s/9bad9384f9b6", "reason": null}}, {"spider": "糯米", "file": "糯米.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 8.582, "init": 0.001, "home": 879.326, "category": 1129.031, "detail": 148.244, "player": 282.071, "url_check": 361.812, "total": 2809.674}, "counts": {"classes": 7, "category_videos": 81, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "/vod-type-id-1-pg-1.html", "vod_id": "90063", "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": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 10.616, "init": 0.001, "home": 361.533, "category": 362.085, "detail": 0.007, "player": 1956.391, "url_check": 62.496, "total": 2754.269}, "counts": {"classes": 62, "category_videos": 100, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "/discover/toplist?id=19723756", "vod_id": "3382154270@Make Them Know@Drake👉MV", "flag": "网易云音乐", "play_id": "3382154270"}, "player": {"parse": 0, "url": "https://vodkgeyttp8.vod.126.net/cloudmusic/b028/core/d385/7949c1ba77cdfe6a51daf59fceb136cf.mp4?wsSecret=2858ff88a0ee464620ab14acadae464d&wsTime=1778908280", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://vodkgeyttp8.vod.126.net/cloudmusic/b028/core/d385/7949c1ba77cdfe6a51daf59fceb136cf.mp4?wsSecret=2858ff88a0ee464620ab14acadae464d&wsTime=1778908280", "reason": null}}, {"spider": "耐视点播", "file": "耐视点播.txt", "success": false, "failed_stage": "category", "error": "分类视频列表为空", "traceback": null, "timings_ms": {"module_load": 5.933, "init": 0.001, "home": 0.001, "category": 1508.408, "detail": 0.0, "player": 0.0, "url_check": 0.0, "total": 3152.455}, "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": 9.17, "init": 0.001, "home": 69.459, "category": 287.144, "detail": 756.14, "player": 0.004, "url_check": 202.238, "total": 1325.898}, "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.881, "init": 0.001, "home": 0.0, "category": 232.492, "detail": 223.09, "player": 0.006, "url_check": 4096.721, "total": 4556.725}, "counts": {"classes": 7, "category_videos": 72, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "20428", "flag": "百度#至臻", "play_id": "https://pan.baidu.com/s/13NubF-EJjexfh6F5107e8A?pwd=x2u9"}, "player": {"parse": 0, "url": "https://pan.baidu.com/s/13NubF-EJjexfh6F5107e8A?pwd=x2u9", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.baidu.com/share/init?surl=3NubF-EJjexfh6F5107e8A&pwd=x2u9", "reason": null}}, {"spider": "茶杯狐", "file": "茶杯狐.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 5.096, "init": 0.001, "home": 1013.252, "category": 682.549, "detail": 685.407, "player": 1461.582, "url_check": 1778.291, "total": 5626.816}, "counts": {"classes": 4, "category_videos": 35, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "detail/video/121063", "flag": "FF有广", "play_id": "play/121063-1-1"}, "player": {"parse": 0, "url": "https://vip.ffzy-plays.com/20260516/53631_aa119b85/index.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://vip.ffzy-plays.com/20260516/53631_aa119b85/index.m3u8", "reason": null}}, {"spider": "虎斑", "file": "虎斑.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 6.391, "init": 0.001, "home": 0.001, "category": 4201.197, "detail": 7430.757, "player": 0.035, "url_check": 132.722, "total": 11772.166}, "counts": {"classes": 6, "category_videos": 72, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "1", "vod_id": "/index.php/vod/detail/id/458530.html", "flag": "夸克#虎斑", "play_id": "https://pan.quark.cn/s/8f09cf77d60e"}, "player": {"parse": 0, "url": "https://pan.quark.cn/s/8f09cf77d60e", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://pan.quark.cn/s/8f09cf77d60e", "reason": null}}, {"spider": "蜡笔", "file": "蜡笔.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 5.421, "init": 0.001, "home": 0.001, "category": 820.98, "detail": 356.269, "player": 0.003, "url_check": 963.398, "total": 2146.612}, "counts": {"classes": 7, "category_videos": 72, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "29", "vod_id": "9231", "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": 7.215, "init": 0.001, "home": 0.001, "category": 771.249, "detail": 183.543, "player": 186.208, "url_check": 962.078, "total": 2110.948}, "counts": {"classes": 4, "category_videos": 36, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "414878", "flag": "蓝光专线4", "play_id": "play/414878-0-0"}, "player": {"parse": 0, "url": "https://play.phimgood.com/20260515/26831_01659324/index.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://play.phimgood.com/20260515/26831_01659324/index.m3u8", "reason": null}}, {"spider": "视界", "file": "视界.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 6.748, "init": 0.0, "home": 305.206, "category": 200.337, "detail": 205.533, "player": 967.648, "url_check": 120.258, "total": 1806.582}, "counts": {"classes": 6, "category_videos": 30, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "20", "vod_id": "135018", "flag": "2K原⑤", "play_id": "parse_api=4fd521eae0c48923af390209e31299c2&url=3LHkCX7wk11bV0n8SjZyIARpN2AiAZk7sNw/ulxaonLxJE/13482Vb9qy+f61DIHcscqv9Z5JPq8VrUrx75YzQ==&token=28f97ac5242b2502d033337ad0a48ea1|雨霖铃|1"}, "player": {"parse": 0, "url": "https://fffan.wki8.com/hls/4a746d0674838fc7ee98deb0b15f6092.m3u8?token=c62a0d4292709c0ee74c8ec2b3a82d81&time=1778908280&YYNB.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://fffan.wki8.com/hls/4a746d0674838fc7ee98deb0b15f6092.m3u8?token=c62a0d4292709c0ee74c8ec2b3a82d81&time=1778908280&YYNB.m3u8", "reason": null}}, {"spider": "路漫漫", "file": "路漫漫.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.866, "init": 0.001, "home": 0.0, "category": 932.004, "detail": 655.768, "player": 3312.261, "url_check": 206.622, "total": 6908.346}, "counts": {"classes": 6, "category_videos": 20, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "6", "vod_id": "detail/8027.html", "flag": "dev云播", "play_id": "play/8027_2_1.html"}, "player": {"parse": 0, "url": "https://v16.toutiao50.com/e6e6d5669db961b429f7c4bc54724e1f/6a095389/video/tos/alisg/tos-alisg-ve-0051c001-sg/oEZRdq8DNERA1QvfezITjQDpByYFEB1dBgdF02/", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://v16.toutiao50.com/e6e6d5669db961b429f7c4bc54724e1f/6a095389/video/tos/alisg/tos-alisg-ve-0051c001-sg/oEZRdq8DNERA1QvfezITjQDpByYFEB1dBgdF02/", "reason": null}}, {"spider": "酷我听书", "file": "酷我听书.txt", "success": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 4.935, "init": 0.001, "home": 358.733, "category": 95.965, "detail": 3526.767, "player": 149.561, "url_check": 56.822, "total": 4193.777}, "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/35fd44b4d611a00dcff6d820e756be38/6a07fc7c/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/35fd44b4d611a00dcff6d820e756be38/6a07fc7c/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": false, "failed_stage": "unexpected", "error": "HTTPSConnectionPool(host='thirdsso.kugou.com', port=443): Max retries exceeded with url: /v2/playlist/category (Caused by ConnectTimeoutError(<HTTPSConnection(host='thirdsso.kugou.com', port=443) at 0x7a51e8de0cd0>, 'Connection to thirdsso.kugou.com timed out. (connect timeout=10)'))", "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='thirdsso.kugou.com', port=443) at 0x7a51e8de0cd0>, 'Connection to thirdsso.kugou.com timed out. (connect timeout=10)')\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='thirdsso.kugou.com', port=443): Max retries exceeded with url: /v2/playlist/category (Caused by ConnectTimeoutError(<HTTPSConnection(host='thirdsso.kugou.com', port=443) at 0x7a51e8de0cd0>, 'Connection to thirdsso.kugou.com timed out. (connect 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 700, in validate_spider_file\n home_result = _run_timed(result[\"timings_ms\"], \"home\", spider.homeContent, clock, 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 325, in homeContent\n File \"/home/harold/workspace/tvbox-resources/py/酷狗音乐.txt\", line 233, in kg_post\n File \"/home/harold/workspace/tvbox-resources/py/酷狗音乐.txt\", line 219, in post_json\nrequests.exceptions.ConnectTimeout: HTTPSConnectionPool(host='thirdsso.kugou.com', port=443): Max retries exceeded with url: /v2/playlist/category (Caused by ConnectTimeoutError(<HTTPSConnection(host='thirdsso.kugou.com', port=443) at 0x7a51e8de0cd0>, 'Connection to thirdsso.kugou.com timed out. (connect timeout=10)'))\n", "timings_ms": {"module_load": 7.517, "init": 385.597, "home": 10138.278, "category": 0.0, "detail": 0.0, "player": 0.0, "url_check": 0.0, "total": 10533.583}, "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 403", "traceback": null, "timings_ms": {"module_load": 6.026, "init": 0.001, "home": 1619.173, "category": 196.675, "detail": 208.611, "player": 198.796, "url_check": 118.092, "total": 4062.043}, "counts": {"classes": 4, "category_videos": 30, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "2", "vod_id": "141585", "flag": "金牌线路", "play_id": "141585@1258194"}, "player": {"parse": 0, "url": "https://ppvod01.kqgfbs.com/splitOut/20260103/1226906/V20260103184854978121226906/index.m3u8?t=6a0826ac&whip=212.107.29.200&sign=3699590dc103aa1b1e785624e5df9e20828b3f36", "valid": false, "reachable": false, "status_code": 403, "final_url": "https://ppvod01.kqgfbs.com/splitOut/20260103/1226906/V20260103184854978121226906/index.m3u8?t=6a0826ac&whip=212.107.29.200&sign=3699590dc103aa1b1e785624e5df9e20828b3f36", "reason": "HTTP 403"}}, {"spider": "闪电", "file": "闪电.txt", "success": false, "failed_stage": "category", "error": "分类视频列表为空", "traceback": null, "timings_ms": {"module_load": 3.758, "init": 0.001, "home": 0.0, "category": 1925.912, "detail": 0.0, "player": 0.0, "url_check": 0.0, "total": 3004.141}, "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": 3.758, "init": 0.001, "home": 0.001, "category": 1666.025, "detail": 1673.989, "player": 1667.208, "url_check": 1788.972, "total": 6800.556}, "counts": {"classes": 4, "category_videos": 40, "detail_videos": 1, "episodes": 1}, "samples": {"tid": "1", "vod_id": "239894", "flag": "高清31", "play_id": "/vodplay/239894-1-1.html"}, "player": {"parse": 0, "url": "https://cdn.yzzy27-play.com/20260515/24479_589ea909/index.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://cdn.yzzy27-play.com/20260515/24479_589ea909/index.m3u8", "reason": null}}, {"spider": "魔方APP", "file": "魔方APP.txt", "success": false, "failed_stage": "home", "error": "分类列表为空", "traceback": null, "timings_ms": {"module_load": 4.854, "init": 0.001, "home": 142.625, "category": 0.0, "detail": 0.0, "player": 0.0, "url_check": 0.0, "total": 147.634}, "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": true, "failed_stage": null, "error": null, "traceback": null, "timings_ms": {"module_load": 3.929, "init": 0.0, "home": 0.0, "category": 435.064, "detail": 151.765, "player": 0.015, "url_check": 307.196, "total": 898.602}, "counts": {"classes": 6, "category_videos": 20, "detail_videos": 1, "episodes": 2}, "samples": {"tid": "1", "vod_id": "171427", "flag": "LZ源", "play_id": "eyJ1cmwiOiJodHRwczovL3YubHpjZG4yNy5jb20vMjAyNTA3MzEvNjc5XzUwYTJiMDQ3L2luZGV4Lm0zdTgiLCJwYXJzZV9hcGkiOiJodHRwczovL2RlbC5tdDMyMC5jb20vbHpmZi5waHA_dXJsPSIsImhlYWRlcnMiOnt9LCJ1c2VyX2FnZW50IjoiIn0="}, "player": {"parse": 0, "url": "https://v.lzcdn27.com/20250731/679_50a2b047/index.m3u8", "valid": true, "reachable": true, "status_code": 200, "final_url": "https://v.lzcdn27.com/20250731/679_50a2b047/index.m3u8", "reason": null}}, {"spider": "黑猫APP", "file": "黑猫APP.txt", "success": false, "failed_stage": "unexpected", "error": "HTTPConnectionPool(host='app1-0-0.87333.cc', port=80): Max retries exceeded with url: /api.php/getappapi.index/vodDetail (Caused by ConnectTimeoutError(<HTTPConnection(host='app1-0-0.87333.cc', port=80) at 0x7a51e8b278a0>, 'Connection to app1-0-0.87333.cc timed out. (connect timeout=10)'))", "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 493, in _make_request\n conn.request(\n ~~~~~~~~~~~~^\n method,\n ^^^^^^^\n ...<6 lines>...\n enforce_content_length=enforce_content_length,\n ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n )\n ^\n File \"/home/harold/workspace/atv-spiders/py/.venv/lib/python3.14/site-packages/urllib3/connection.py\", line 500, in request\n self.endheaders()\n ~~~~~~~~~~~~~~~^^\n File \"/home/harold/.local/share/uv/python/cpython-3.14.3-linux-x86_64-gnu/lib/python3.14/http/client.py\", line 1353, in endheaders\n self._send_output(message_body, encode_chunked=encode_chunked)\n ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^\n File \"/home/harold/.local/share/uv/python/cpython-3.14.3-linux-x86_64-gnu/lib/python3.14/http/client.py\", line 1113, in _send_output\n self.send(msg)\n ~~~~~~~~~^^^^^\nurllib3.exceptions.ConnectTimeoutError: (<HTTPConnection(host='app1-0-0.87333.cc', port=80) at 0x7a51e8b278a0>, 'Connection to app1-0-0.87333.cc timed out. (connect timeout=10)')\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: HTTPConnectionPool(host='app1-0-0.87333.cc', port=80): Max retries exceeded with url: /api.php/getappapi.index/vodDetail (Caused by ConnectTimeoutError(<HTTPConnection(host='app1-0-0.87333.cc', port=80) at 0x7a51e8b278a0>, 'Connection to app1-0-0.87333.cc timed out. (connect 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 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/黑猫APP.txt\", line 270, in detailContent\n File \"/home/harold/workspace/tvbox-resources/py/黑猫APP.txt\", line 67, in _api_post\nrequests.exceptions.ConnectTimeout: HTTPConnectionPool(host='app1-0-0.87333.cc', port=80): Max retries exceeded with url: /api.php/getappapi.index/vodDetail (Caused by ConnectTimeoutError(<HTTPConnection(host='app1-0-0.87333.cc', port=80) at 0x7a51e8b278a0>, 'Connection to app1-0-0.87333.cc timed out. (connect timeout=10)'))\n", "timings_ms": {"module_load": 4.774, "init": 0.001, "home": 1090.221, "category": 628.44, "detail": 10011.242, "player": 0.0, "url_check": 0.0, "total": 11736.392}, "counts": {"classes": 5, "category_videos": 30, "detail_videos": 0, "episodes": 0}, "samples": {"tid": "1", "vod_id": "93744", "flag": null, "play_id": null}, "player": {"parse": null, "url": "", "valid": false, "reachable": null, "status_code": null, "final_url": "", "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, "&")
|
|
.replace(/</g, "<")
|
|
.replace(/>/g, ">")
|
|
.replace(/"/g, """);
|
|
}
|
|
|
|
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>
|