hypothesis / via

Proxies third-party PDF files and HTML pages with the Hypothesis client embedded, so you can annotate them
https://via.hypothes.is/
BSD 2-Clause "Simplified" License
19 stars 7 forks source link

Support configuring a proxy for fetching YouTube transcripts #1399

Closed robertknight closed 1 month ago

robertknight commented 1 month ago

Add a YOUTUBE_PROXY environment variable which specifies a proxy service to use when fetching caption tracks/transcripts from YouTube.

The format of this variable should be an argument that can be used with the proxies argument to requests.post, eg. "http://proxy_user:proxy_pass@proxy_host:port".

Part of https://github.com/hypothesis/support/issues/143. Slack thread: https://hypothes-is.slack.com/archives/C4K6M7P5E/p1723188976861449

Testing: Set the YOUTUBE_PROXY environment variable before starting the service. See Slack thread for details.