Skip to content

youtube search, youtube cookies, youtube channel sync, youtube playlist sync#16

Merged
willuhmjs merged 5 commits into
willuhmjs:mainfrom
ryzenpay:main
Jul 25, 2026
Merged

youtube search, youtube cookies, youtube channel sync, youtube playlist sync#16
willuhmjs merged 5 commits into
willuhmjs:mainfrom
ryzenpay:main

Conversation

@ryzenpay

Copy link
Copy Markdown
Collaborator

pls audit code

@ryzenpay
ryzenpay requested a review from willuhmjs July 25, 2026 19:37
@willuhmjs
willuhmjs merged commit 7ba715a into willuhmjs:main Jul 25, 2026
3 checks passed
willuhmjs added a commit that referenced this pull request Jul 26, 2026
The README's feature list predated PR #16 entirely and had no mention of the
YouTube account linking, subscription/playlist sync, or search features
already covered on the docs site.
Follow-up to the security review on PR willuhmjs#16:

- Restrict the CSRF/CORS trust granted to browser-extension origins to the
  handful of routes the wytui extension actually calls, instead of exempting
  any chrome-extension://*/moz-extension://* origin app-wide. Extension IDs
  can't be reliably pinned (Firefox randomises the moz-extension UUID per
  profile), so scoping by path bounds what another installed extension could
  abuse via the session-cookie fallback.
- Cap search offset at 1000 so callers can't force yt-dlp to page arbitrarily
  deep into YouTube results on every request.
- Give playlist/subscription/history/watch-later routes their own stricter
  rate-limit bucket (30/min) instead of sharing the 500/min general bucket,
  since each spawns one or more yt-dlp processes and some bypass cache.
- Run playlist sync in bounded batches with a shorter per-call timeout so a
  50-playlist sync can't approach ~100 minutes of wall-clock time.
The landing page's feature grid predated this PR's YouTube search, account
linking, subscription/playlist sync, and the recently-added YAML config
export/import — none of them were listed. Add six cards, slotted next to
their closest existing relatives (Browser Extension, Full-Text Search,
Speed Throttling, Backup & Restore) rather than as a separate section.
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.

2 participants