Downloading videos uses yt-dl however fetching the thumbnail is done directly with axios.
|
const response = await axios.get<Readable>(thumbnails.medium, { responseType: 'stream' }) |
We need to use the configured socks proxy with help of socks-proxy-agent
Useful article: https://dev.to/writech/how-to-use-a-socks-proxy-in-axios-5ghi
Downloading videos uses yt-dl however fetching the thumbnail is done directly with axios.
youtube-synch/src/services/runtime/client.ts
Line 232 in 4cb9134
We need to use the configured socks proxy with help of socks-proxy-agent
Useful article: https://dev.to/writech/how-to-use-a-socks-proxy-in-axios-5ghi