Skip to content

Downloading thumbnail does not use socks proxy #340

@mnaamani

Description

@mnaamani

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions