Only use captured aria2c output if available

This commit is contained in:
rlaphoenix 2023-03-03 07:54:31 +00:00
parent d964dde4d5
commit 19ca567019
1 changed files with 35 additions and 34 deletions

View File

@ -96,6 +96,7 @@ def aria2c(
) )
p._stdin_write(uri) # noqa p._stdin_write(uri) # noqa
if p.stdout:
is_dl_summary = False is_dl_summary = False
aria_log_buffer = "" aria_log_buffer = ""
for line in iter(p.stdout.readline, ""): for line in iter(p.stdout.readline, ""):