Skip to content

Fix Playwright timeout on episode pages#1

Open
odium1963 wants to merge 1 commit intoFave42:masterfrom
odium1963:fix/playwright-timeout
Open

Fix Playwright timeout on episode pages#1
odium1963 wants to merge 1 commit intoFave42:masterfrom
odium1963:fix/playwright-timeout

Conversation

@odium1963
Copy link
Copy Markdown

Summary

  • Try domcontentloaded first instead of load when navigating episode pages with Playwright
  • Fall back to commit (fires on first byte) if that also times out

Why

wcostream.tv loads many ad/tracking scripts that can hang indefinitely, causing the load event to never fire and triggering a 30-second timeout. We only need the HTML structure to extract the iframe src, so waiting for domcontentloaded (DOM parsed, before external resources) is sufficient.

Test plan

  • Run against an episode URL that previously timed out
  • Confirm iframe is still found correctly

🤖 Generated with Claude Code

wcostream.tv has many ad/tracking scripts that delay the load event
indefinitely. Switching to domcontentloaded (fires once the HTML is
parsed) and commit (fallback, fires on first byte) avoids the 30s
timeout while still capturing the iframe src we need.

Co-Authored-By: odium1963 <odium71499@gmail.com>
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