Fix YouTube DNS failure via Invidious proxy + retheme to chainstreet gold
yonagush+1: Claude Sonnet 4.6
a72d248
YouTube fix:
- HuggingFace datacenter IPs can't resolve youtube.com (DNS blocked at network level)
- New approach: detect YouTube URLs, route download through Invidious proxy instances
(inv.nadeko.net, invidious.privacydev.net, iv.melmac.space, etc.)
- Invidious /api/v1/videos/{id} gives stream info; ?local=true proxies download
through Invidious so youtube.com is never contacted
- Falls back to yt-dlp for TikTok/Instagram/non-YouTube and if all Invidious fail
- yt-dlp still uses tv_embedded/mweb clients + cookies support
Brand retheme to chainstreet gold:
- primary-500: #E8A020 (chainstreet logo gold, replaces purple #6C63FF)
- accent-500: #FFB800 (amber highlight, replaces pink #FF6B6B)
- dark-900: #0A0907 (warm near-black matching logo background)
- All glows, gradients, buttons, progress bars, scrollbar updated to gold/amber
- Hardcoded hex values updated across Hero, App, BrandKitEditor, ClipCard, api.js
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fix YouTube download failures on datacenter IPs via cookies.txt support
yonagush+1: Claude Sonnet 4.6
31dce00
- Switch yt-dlp player clients from android_embedded to tv_embedded/mweb/web
(android_embedded is aggressively blocked by YouTube on server IPs)
- Add cookies_path param to downloader.download() — passes cookiefile to yt-dlp
when provided, bypassing YouTube's datacenter IP restrictions
- Accept cookies_file upload in /api/process endpoint; also check YT_COOKIES_PATH
env var for a persistent HF Secret cookies path
- Add "Having trouble with YouTube?" collapsible in Hero URL tab with cookies.txt
file upload + extension instructions
- Wire cookies file through App.jsx handleHeroSubmit → api.js FormData
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Fix video rendering, upload bug, yt-dlp, and CTA variations
yonagush+1: Claude Sonnet 4.6
738451d
- Replace broken RGBA overlay approach in article reels with full-frame
RGB slide rendering using PIL alpha_composite before MoviePy sees any
frame — eliminates brown background / tiny rectangle / small text bug
- Add premium gradient background, frosted glass card, drop-shadow text,
progress dots, slide counter, and chainstreet.io endcard
- Fix "read of closed file" on video upload: save UploadFile to disk
synchronously in the endpoint before spawning the background task
- Update yt-dlp options: latest version, android_embedded player client,
user-agent spoofing, geo_bypass, retries — fixes YouTube compatibility
- Add CTA_POOL (10 variations) randomly selected per reel — no more
monotonous repeated CTAs for repeat viewers
- Install fonts-dejavu-core + fonts-liberation in Docker for reliable
text rendering when Montserrat download fails
- Improve font fallback chain: Montserrat → Liberation → DejaVu → default
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>