move download var

This commit is contained in:
Noe
2024-12-14 23:15:26 +01:00
parent 43439770c2
commit 246c1ea57b
+2 -1
View File
@@ -10,7 +10,7 @@ aria2 = aria2p.API(
secret=""
)
)
download_paused = False
def pauseDownload(_):
global download_paused
if download_paused == True:
@@ -29,6 +29,7 @@ def startDownload(_):
else:
print("Download Started!")
download = aria2.add_magnet(magnet_uri)
download_paused = False
downloads_dir = os.path.join(os.path.expanduser("~"), "Downloads")