Skip to content
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

在开启”--use-aria2c“参数后无法下载 #552

Closed
iikkalord opened this issue Mar 11, 2023 · 1 comment
Closed

在开启”--use-aria2c“参数后无法下载 #552

iikkalord opened this issue Mar 11, 2023 · 1 comment

Comments

@iikkalord
Copy link

iikkalord commented Mar 11, 2023

1. 你使用的BBDown版本是什么?(指明是Release版本还是Actions版本)

Release版本: BBDown_1.5.4_20221019_win-x64

2. 你在什么系统使用本软件?(Win/Linux/Mac)

Windows 11 22H2 (22621.1344)

3. 你使用的完整命令是什么?

BBdown https://www.bilibili.com/video/BV1ST411Y7vv/

4. 遇到了什么问题?

在开启”--use-aria2c“参数后无法下载
在”--use-aria2c“前加#可以正常进入下载状态

5. 错误代码

System.ComponentModel.Win32Exception (2): ErrorStartingProcess, aria2c, {此处显示为设置的下载目录路径} , 系统找不到指定的文件。
   at System.Diagnostics.Process.StartWithCreateProcess(ProcessStartInfo) + 0xda7
   at BBDown.BBDownAria2c.<RunCommandCodeAsync>d__1.MoveNext() + 0xcc
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb6
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x42
   at BBDown.BBDownAria2c.<DownloadFileByAria2cAsync>d__2.MoveNext() + 0x731
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb6
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x42
   at BBDown.BBDownUtil.<MultiThreadDownloadFileAsync>d__11.MoveNext() + 0x195
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
   at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task) + 0xb6
   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task) + 0x42
   at BBDown.Program.<DoWorkAsync>d__13.MoveNext() + 0x4083
--- End of stack trace from previous location ---
   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() + 0x20
   at BBDown.Program.<DoWorkAsync>d__13.MoveNext() + 0x6299

6. 配置文件

--debug
-ia
--ffmpeg-path {此处为设置的路径,该路径无中文无空格,确认该路径下一级目录有需要的exe执行文件 格式为:X:/XXXX/XXXX/}
--aria2c-path {此处为设置的路径,该路径无中文无空格,确认该路径下一级目录有需要的exe执行文件 格式为:X:/XXXX/XXXX/}
--use-aria2c
--encoding-priority
av1, hevc, avc
--work-dir {此处为设置的路径,该路径无中文无空格 格式为:X:/XXXX/XXXX/}
--delay-per-page
10

7.补充

又再尝试了一下,将"--work-dir"的参数注释掉之后,把”--use-aria2c“恢复未注释状态,aria2就可以正常使用了

@iikkalord
Copy link
Author

最后的结果

通过将所有的路径的斜杠改为反斜杠,正常使用

初步猜测是因为我的ffmpeg和aria2都是环境变量里,所以我猜测是地址虽然没有识别成功,但是直接引用了系统里的。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant