From 54c563ffc4887e6182bc2a341cb2cf11b2a58dea Mon Sep 17 00:00:00 2001 From: lzzy12 Date: Thu, 26 Sep 2019 06:15:36 +0530 Subject: [PATCH] Make sure there are not other useless downloads in background on startup Signed-off-by: lzzy12 --- bot/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot/__init__.py b/bot/__init__.py index 3d76ecc..bffe857 100644 --- a/bot/__init__.py +++ b/bot/__init__.py @@ -31,6 +31,8 @@ aria2 = aria2p.API( secret="", ) ) +aria2.autopurge() +aria2.remove_all(True) DOWNLOAD_DIR = None BOT_TOKEN = None try: