From cbd796463d649fa9cb0a42e2af7a7e2ef33e1fbe Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Wed, 8 Mar 2023 13:46:55 +0000 Subject: [PATCH] Ignore "aria2 will resume download" logs These only happen if we intentionally cancel the process, or failed. However, this is something that is generally obvious given the args, and when cancelling a wall of these logs would appear. --- devine/core/downloaders/aria2c.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/devine/core/downloaders/aria2c.py b/devine/core/downloaders/aria2c.py index 285b7b5..5478adb 100644 --- a/devine/core/downloaders/aria2c.py +++ b/devine/core/downloaders/aria2c.py @@ -133,6 +133,8 @@ async def aria2c( gid, status, avg_speed, path_or_uri = line.split("|") progress(total=100, completed=100, downloaded=avg_speed.strip()) elif not is_dl_summary: + if "aria2 will resume download if the transfer is restarted" in line: + continue aria_log_buffer += f"{line.strip()}\n" if aria_log_buffer: