Closed D2O84 closed 1 year ago
Hey @D2O84,
In principle, it should also work on Linux (although it's currently not actively tested on platforms other than Windows).
From your error message, it seems that the path to the yt-dlp binary is not set correctly to work on Linux, where the downloaded binary should be named just yt-dlp
instead of yt-dlp.exe
.
You can configure this as follows:
var ytlp = new YoutubeDL()
{
YoutubeDLPath = "/home/.../yt-dlp"
};
That worked,
YoutubeDLPath = OperatingSystem.IsLinux() ? "yt-dlp" : "yt-dlp.exe", FFmpegPath = OperatingSystem.IsLinux() ? "ffmpeg" : "ffmpeg.exe"
Thank you
Hi Is YoutubeDLSharp suppose to work on Linux?, it works fine on windows but fails on Linux I have this error
An error occurred trying to start process 'yt-dlp.exe' with working directory '/home/...'. No such file or directory
I'm using
And
await YoutubeDL.DownloadYtDlpBinary(); await YoutubeDL.DownloadFFmpegBinary();
Thank you