mirror of https://github.com/devine-dl/devine.git
Only use captured aria2c output if available
This commit is contained in:
parent
d964dde4d5
commit
19ca567019
|
@ -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, ""):
|
||||||
|
|
Loading…
Reference in New Issue