From 18449c4777ce905889b3f16c8723fcab94bcd83f Mon Sep 17 00:00:00 2001 From: rlaphoenix Date: Mon, 27 Feb 2023 00:00:55 +0000 Subject: [PATCH] Ignore ERROR prints from aria2c progress checks --- devine/core/downloaders/aria2c.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/devine/core/downloaders/aria2c.py b/devine/core/downloaders/aria2c.py index 22cdccf..45c2b32 100644 --- a/devine/core/downloaders/aria2c.py +++ b/devine/core/downloaders/aria2c.py @@ -118,7 +118,7 @@ async def aria2c( buffer += byte if byte == b"]": recording = False - if b"FileAlloc" not in buffer: + if b"FileAlloc" not in buffer and b"ERROR" not in buffer: try: # id, dledMiB/totalMiB(x%), CN:xx, DL:xxMiB, ETA:Xs # eta may not always be available