Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

fix(knowledge): video-digest cookie-retry pattern 'extracting cookies' is tested only against stderr

已关闭
#6,981 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
javascript
领域
backend

调研方向

Start in acquire-yt-dlp-auth.js, where COOKIE_PROFILE_RETRY_HINT_PATTERNS is defined, then read spawnFailureDetail in acquire-with-retry.js, which returns only stderr. First confirm with a live yt-dlp run which stream the 'Extracting cookies' line uses. If it is stderr, remove the pattern; if stdout, include it in the cookie-profile detail. Done when a test using captured output proves each pattern can match its input.

由索引模型根据 Issue 内容生成。

描述

needs-triage priority: low status: needs-info

Summary

COOKIE_PROFILE_RETRY_HINT_PATTERNS includes /extracting cookies/i, but the only text it is ever tested against is the failed spawn's stderr. If yt-dlp reports its "Extracting cookies from " progress line on stdout, the pattern can never match, so the entry is dead and gives a false impression that the case is handled.

Failure scenario

Expected: every pattern in the retry-hint list can match text the caller actually passes in.

Actual: spawnFailureDetail returns result.stderr (trimmed), falling back to result.error, then "spawn failed". stdout is never read. The caller passes that detail to isCookieProfileRetryableError.

Unverified: which stream yt-dlp writes that message to. My recollection is that it is an informational line printed on stdout, but I did not confirm it against yt-dlp source or a live run in this session, so the first step of the fix is to check. If it does go to stderr, this issue reduces to the pattern being redundant with the more specific failure messages in the list.

Evidence

Suggested fix

Confirm the stream with a live yt-dlp run against a browser whose cookie store cannot be read. Then either drop the pattern, or, if the message is on stdout and the retry is wanted, include stdout in the detail for the cookie-profile path. Add a test using the real captured output.

Related

  • #6816 (browser-cookie fallback)

🤖 Generated with Claude Code

主要语言
Shell
星标
22
派生
2
平均合并
7 小时 23 分钟
30 天内合并 PR
950

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

melodic-software/claude-code-plugins 的其他 Issue

查看 melodic-software/claude-code-plugins 的全部 Issue

相似的 Issue

更多 Shell/Bash Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。