-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Handle different binary filename at runtime #43
Comments
Oh, gotcha. What if we expose a constructor way, being the default So users can continue using the library as usual and power users like you can take advantage of the constructor for creating different way to consume the binary. |
I agree with that |
My issue may somewhat be unrelated but can i change the path to the binary that yt-dl ultimately uses to download ?. The default path to the binary is inside Environment
This would be the equivalent of https://github.com/przemyslawpluta/node-youtube-dl#changing-the-binary-path Update
|
const { create: createYoutubeDl } = require('youtube-dl-exec')
const youtubedl = createYoutubeDl('/my/binary/path') Also, added YOUTUBE_DL_SKIP_DOWNLOAD=true npm install |
Why
I want to use yt-dlp with youtube-dl-exec. While using https://github.com/microlinkhq/youtube-dl-exec#environment-variables can download the correct binary, but on runtime, we need to set
YOUTUBE_DL_FILENAME
manually inprocess.env
How
It should implement or document how to handle different binary filenames at runtime.
Either document how to do it with
process.env
or create something to handle these different binary filenames, either way, I'm fineThe text was updated successfully, but these errors were encountered: