Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
youtube-dl --external-downloader doesn't work with a Full Path #25852
Comments
|
On Windows (at least), you need to use double-quotes, and backslashes must be escaped. The following works for me:
Forward-slashes also work on Windows (again with double-quotes), if you prefer:
Don't forget to specify your |
|
I was already using double-quotes, but not escaped backslashes. However, I just tried using double-quotes AND escaped backslashes like you mentioned, but it still doesn't work. I had also already tried using forward-slashes before, but that doesn't work either. I noticed that you have aria2c installed on your system, that means that "aria2" is probably listed in your PATH environment variable which is why it's probably working for you. Go remove the "C:\Program Files\aria2\aria2c.exe" from your envorinment PATH and try it again. I'm testing this on a system where aria2c is only being used by calling the EXE directly. |
|
Hmm, that would be weird, because according to what you're saying, Anyway, @dstftw please don't let my observation affect whether you look into this... p.s. I assume your |
|
Yeah, my aria2c.exe binary works just fine, no issues there, and like I said in the OP, it works just fine if I use "--external-downloader=aria2c", it just doesn't work when I use the full path. I know I can add my aria2c path to my PATH environment variable, but it doesn't make sense why youtube-dl isn't accepting the full path with "--external-downloader". Seems like it's probably just a simple oversight. For example, the batch script below works just fine and aria2c is correctly being called from my "D:\Temp\aria2c" folder... However. this batch script below doesn't work when I use the full path with "--external-downloader" instead of using the %path% variable... None of the syntax's below are working.... |
|
The The option certainly needs to understand which tool it is given on the command line, in order to apply the correct options. |
|
I had a feeling that's what the issue was. Thank You for confirming. |
Checklist
Verbose log
Description
Using the "--external-downloader" argument doesn't work with a full path...
youtube-dl.exe --external-downloader=D:\aria2\aria2c.exeHowever, if I put "aria2c.exe" in the folder above youtube-dl.exe, then this command does work...
youtube-dl.exe --external-downloader=..\aria2c.exeI'm well aware that I can change the PATH variable, and just use "aria2c" instead of a Full Path, but I was just curious on why using a Full Path doesn't work? Was not allowing full paths the intended behavior? Or is this just an oversight?