feat: add camoufox support default for potoken generation - #360
Conversation
|
@coderabbitai full review |
|
|
Warning Review limit reached
Next review available in: 50 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (21)
Comment |
Checklist
AI Disclosure
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