Skip to content

fix: avoid Unix-only process group handling on Windows#162

Open
Gujiassh wants to merge 1 commit intomvanhorn:mainfrom
Gujiassh:fix/windows-ytdlp-process-group
Open

fix: avoid Unix-only process group handling on Windows#162
Gujiassh wants to merge 1 commit intomvanhorn:mainfrom
Gujiassh:fix/windows-ytdlp-process-group

Conversation

@Gujiassh
Copy link
Copy Markdown

@Gujiassh Gujiassh commented Apr 5, 2026

Summary

  • avoid os.killpg() / os.setsid assumptions in the yt-dlp YouTube search and transcript paths
  • use Windows-safe process-group creation and timeout cleanup so Windows runs no longer crash when yt-dlp times out
  • add focused regression coverage for Windows timeout handling in both the search and transcript code paths

Fixes #156.

Testing

  • python3 -m pytest tests/test_youtube_yt.py

Use Windows-safe subprocess creation and timeout cleanup for yt-dlp search/transcript paths so Windows runs no longer crash on os.killpg or os.setsid.

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-opencode)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
@Gujiassh
Copy link
Copy Markdown
Author

Gujiassh commented Apr 6, 2026

Quick check from my side: this branch is still clean locally and unchanged relative to its fork tracking branch (0/0).

Current state I rechecked today:

  • PR is still OPEN + CLEAN
  • no local follow-up changes are pending from my side
  • there are no active review threads to address

If this looks good on your end, it seems ready for review/merge.

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.

Windows crash: os.killpg not available (YouTube search fails)

1 participant