Repository navigation
fix(recording): 下播后及时复检直播状态修复漏录;自定义脚本路径解析修复;新增 streamlink 兜底与测试 - #512
Open
LuckySauce wants to merge 3 commits into
Open
LuckySauce wants to merge 3 commits into
LuckySauce wants to merge 3 commits into
Conversation
…eamlink fallback - recheck live status promptly after recording ends (douyin/tiktok delayed 30s instead of skipped; thresholds configurable) - split custom script command with shlex, preserving Windows backslash paths - add optional streamlink fallback for URLs without built-in handler - add tests/ (21 cases) so CI unittest discover actually runs
…P041) Fix Python Lint CI failures; no behavior change (alias since Python 3.8).
LuckySauce
added a commit
to LuckySauce/StreamCap-
that referenced
this pull request
Nov 6, 2026
…P041) Same fix as ihmily#512, needed here so this branch lints clean against main.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📜 标题(Title)
🔍 描述(Description)
recheck_live_status会因平台排除条件(douyin/tiktok)被完全跳过复检,下一次检测要等到最长一个轮询周期(默认 300s),期间主播再开播会被漏录。本 PR 将 douyin/tiktok 改为录制结束后延迟 30 秒复检(等待期间若已手动停止或已重新录制则取消),并新增两个可配置项:min_valid_recording_duration(默认 25)、delayed_recheck_interval(默认 30)。command.split()解析,路径含空格/引号会被撕碎。改用shlex.split(posix=False)并去除成对引号,Windows 反斜杠路径保持原样。pip install streamlink后生效,未安装时行为与旧版完全一致);解析在asyncio.to_thread中执行,不阻塞事件循环。pyproject.toml新增 optional-dependencies,不改变默认依赖。tests/共 21 个用例(命令解析、平台映射、画质选择),使现有 CI 的unittest discover实际生效。📝 类型(Type of Change)
🏗️ 测试(Testing)
python -m py_compile全部改动文件通过python -m unittest discover -s tests -v:21 个用例全部通过如何复现验证:
python "C:\my dir\post.py"),录制结束后脚本参数完整不拆碎