Make sure there are not other useless downloads in background on startup

Signed-off-by: lzzy12 <jhashivam2020@gmail.com>
This commit is contained in:
lzzy12 2019-09-26 06:15:36 +05:30
parent 50020b0e6b
commit 54c563ffc4

View File

@ -31,6 +31,8 @@ aria2 = aria2p.API(
secret="",
)
)
aria2.autopurge()
aria2.remove_all(True)
DOWNLOAD_DIR = None
BOT_TOKEN = None
try: