Skip to content

feat: add camoufox support default for potoken generation - #360

Open
unixfox wants to merge 4 commits into
iv-org:masterfrom
unixfox:camoufox-support-potoken
Open

feat: add camoufox support default for potoken generation#360
unixfox wants to merge 4 commits into
iv-org:masterfrom
unixfox:camoufox-support-potoken

Conversation

@unixfox

@unixfox unixfox commented Aug 3, 2026

Copy link
Copy Markdown
Member

Checklist

  • I have read the AI Policy and understand the disclosure requirements

AI Disclosure

  • AI was not used to create this pull request
  • AI was used to fully create this pull request
  • AI was used to partially create this pull request

Model(s) used (and thinking/reasoning level if relevant):
GPT 5.6 Sol (Max) + Claude Opus 4.8

Tool(s) used:
Opencode and Claude code

How was AI used?

GPT 5.6 Sol was used to fully write the code. And Claude Opus 4.8 reviewed the code and improved it.


Pull request description

While working on iv-org/invidious#5814, I found that a potoken generated by jsdom doesn't work. It needs to be generated from a real browser environment.

I have evaluated a lot of headless browsers:

I implemented camoufox because it doesn't require a virtual display, lower on memory usage than chromium and has very good stealth capabilities.

The code is implemented in a way that allows to swap to any other browser that support CDP protocol. In case we want to switch to a more lightweight one.

I don't fully like it but camoufox introduced a lot of requirements and was hard to package for docker + deno compile. It's the best candidate as of right now but I hope I'll be able to replace it with either oxide or obscura in the future.

This new potoken generation may allow being less blocked by YouTube.

So this PR adds a new potoken generation for the current way of fetching videoplayback URLs for DASH but will be mandatory for SABR usage.

Features

Copilot AI review requested due to automatic review settings August 3, 2026 00:20

This comment was marked as resolved.

Comment thread docker/ldd Outdated
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.

3 participants