diff --git a/devine/core/downloaders/aria2c.py b/devine/core/downloaders/aria2c.py index e9e6637..0f89cd0 100644 --- a/devine/core/downloaders/aria2c.py +++ b/devine/core/downloaders/aria2c.py @@ -15,6 +15,7 @@ async def aria2c( headers: Optional[dict] = None, proxy: Optional[str] = None, byte_range: Optional[str] = None, + silent: bool = False, *args: str ) -> int: """ @@ -88,7 +89,9 @@ async def aria2c( p = await asyncio.create_subprocess_exec( executable, *arguments, - stdin=subprocess.PIPE + stdin=subprocess.PIPE, + stderr=[None, subprocess.DEVNULL][silent], + stdout=[None, subprocess.DEVNULL][silent] ) await p.communicate(uri.encode())