feat: add optional YouTube proxy support for IP blocks

Route transcript fetching through YOUTUBE_PROXY or Webshare residential
config, with clearer errors when YouTube still blocks requests.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Frank Schwenk
2026-06-16 16:23:06 +02:00
parent 5b8042b173
commit 76de7c7a3a
6 changed files with 128 additions and 7 deletions
+8
View File
@@ -18,5 +18,13 @@ class Settings(BaseSettings):
app_url: str = "http://localhost:8000"
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
youtube_proxy: str = ""
# Webshare rotating residential (paid package — NOT free "Proxy Server" tier)
webshare_proxy_username: str = ""
webshare_proxy_password: str = ""
webshare_proxy_locations: str = "" # comma-separated, e.g. de,es
settings = Settings() # type: ignore[call-arg]