fix: normalize YouTube proxy URL and support dashboard fields

Rewrite https proxy URLs to http, allow HOST/PORT/USER/PASSWORD env vars,
and surface clearer errors when proxies fail on the wrong port.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Frank Schwenk
2026-06-16 16:30:23 +02:00
parent 76de7c7a3a
commit 12cf6cab32
6 changed files with 73 additions and 6 deletions
+6 -1
View File
@@ -19,8 +19,13 @@ class Settings(BaseSettings):
app_version: str = "1.0.0"
# YouTube transcript proxy (optional — for IP blocks)
# Single URL used for HTTP+HTTPS, e.g. http://user:pass@host:port
# Option A: full URL — MUST include port, use http:// (not https://)
youtube_proxy: str = ""
# Option B: dashboard fields (Webshare etc.) — combined into a proxy URL
youtube_proxy_host: str = ""
youtube_proxy_port: int = 0
youtube_proxy_user: str = ""
youtube_proxy_password: str = ""
# Webshare rotating residential (paid package — NOT free "Proxy Server" tier)
webshare_proxy_username: str = ""
webshare_proxy_password: str = ""