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.
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-dlI think there should be an option for a custom mirror.A possible implementation could use the
YOUTUBE_DL_DIRECT_BINARY_DOWNLOAD_URLenvironment 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-dlwill result in downloadinghttps://xxxxx.s3.xxxxxx.amazonaws.com/2020.11.12-youtube-dl.exeon windows.