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.
2 Questions using aria2c in python #20342
Comments
|
You should put the aria2c binary in a folder in your PATH. |
|
As for 2, |
Please follow the guide below
xinto all the boxes [ ] relevant to your issue (like this:[x])Make sure you are using the latest version: run
youtube-dl --versionand ensure your version is 2019.03.09. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.Before submitting an issue make sure you have:
What is the purpose of your issue?
If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:
If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):
Description of your issue, suggested solution and other information
First of all, this is the simple python code:
So, my questions are:
How do I set the path for aria2c? I don't want the aria2c.exe inside the folder where the script is, it should be in an subfolder called "bin".
I tried
'external_downloader':"bin\\aria2c",or'external_downloader':cwd+"\\bin\\aria2c",but either it ignored it or it gave me an error.How do I specify the external_downloader_args? It works when aria2c is in the same folder as the .py script and I delete the line
'external_downloader_args':"-x 16 -s 16 -k 1M",but with it, it just outputs the error above.This question was asked, but you said we should open a new Issue with reproducable environment, so I attached a .zip if needed. It just contains the script, a .bat file, aria2c and an empty "bin" folder ^^ test.zip
#15337 (comment)
Thanks!