Skip to content

fix(xuexitong): protect read-only progress parsing from non-finite values - #242

Merged
07xh merged 3 commits into
mainfrom
fix/xuexitong-nonfinite-status-20261123
Nov 23, 2026
Merged

07xh merged 3 commits into
mainfrom
fix/xuexitong-nonfinite-status-20261123

Conversation

@07xh

@07xh 07xh commented Nov 23, 2026

Copy link
Copy Markdown
Owner

问题

pacing._as_seconds() 对来自 /ananas/status 的无穷大播放时长会在 while number > duration 循环中无法退出;int(inf) 解析视频长度或 HTTP 状态也会抛未捕获的 OverflowError,影响任务开始前的只读校准。

修改

  • 忽略 NaN、±Infinity、异常超大数和布尔型的播放位置,不把无效数字当作已确认进度。
  • 无效服务器时长、HTTP 状态码直接视为不可核验,不中断调度。
  • 增加 3 组离线回归用例,覆盖 Infinity、NaN、溢出整数、布尔输入和异常 HTTP 状态。
  • 不改动任何发送心跳、播放速率、请求协议或服务端完成判据。

等待 CI 全部通过后再合并。

@07xh
07xh merged commit 47f9b1c into main Nov 23, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant