create: 更新线路进度与并发调节

MemRelay-Operation: memory-save:iptv-fact-refresh-ui-20261113t1521
MemRelay-Resource: abe5ac46-cec2-4175-93e5-30f925a27898
This commit is contained in:
2026-11-13 23:21:40 +08:00
parent d95faabf8e
commit bb682ae4b2
@@ -0,0 +1,17 @@
---
title: 更新线路进度与并发调节
type: fact
permalink: main/projects/6acaea0a-2a42-470a-9bc0-528c1ae658eb/更新线路进度与并发调节
stable_id: abe5ac46-cec2-4175-93e5-30f925a27898
scope: project
memory_type: fact
project_id: 6acaea0a-2a42-470a-9bc0-528c1ae658eb
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
status: active
revision: 1
request_id: iptv-fact-refresh-ui-20261113t1521
created_at: '2026-11-13T15:21:33.738837+00:00'
updated_at: '2026-11-13T15:21:33.738837+00:00'
---
Web 页面右上角可调并发协程数与超时。并发 8–400(默认 160),超时 2–20 秒(默认 5),保存在 localStorage:iptv-refresh-concurrency、iptv-refresh-timeout。POST /api/refresh?concurrency=&timeout=。进度串在标题栏底部:拉取上游 done/total,探测 done/total、可用 alive、并发。GET /api/status 返回 refresh.running/stage/done/total/alive/concurrency/timeout/message。页面每 400ms 轮询,进行中禁用按钮与参数;完成后自动刷新列表。探测会跟随 HLS 最多 3 跳并要求真实媒体分片,不再把仅能打开的 m3u8 当可播。Web 更新不含 mega 成人源,preserve_sources 保留库中已有条目。