Skip to content

Download binary from custom mirror, e.g. S3 #1

Description

@n1ru4l

Currently, it seems like the binary can only be downloaded from S3. I created przemyslawpluta/node-youtube-dl#351 on node-youtube-dl

Since this package supersedes node-youtube-dl I think there should be an option for a custom mirror.

A possible implementation could use the YOUTUBE_DL_DIRECT_BINARY_DOWNLOAD_URL environment variable:

YOUTUBE_DL_DIRECT_BINARY_DOWNLOAD_URL - download the youtube-dl binary from the given download url, completely ignoring the ** YOUTUBE_DL_HOST** option, while performing no lookup for retrieving the latest version of the binary. This is useful if you are hosting the youtube-dl binary on your own S3 bucket. The platform-specific extension will be appended.
E.g. the value https://xxxxx.s3.xxxxxx.amazonaws.com/2020.11.12-youtube-dl will result in downloading https://xxxxx.s3.xxxxxx.amazonaws.com/2020.11.12-youtube-dl.exe on windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions