feat: implement seeding functionality and enhance download management with seeded magnets tracking

This commit is contained in:
Vxrtrauter
2026-03-08 12:00:00 +01:00
parent dcc12c0b28
commit 8d1b3ba68f
5 changed files with 28 additions and 3 deletions
+2 -1
View File
@@ -1,5 +1,5 @@
from core.utils.logging.logs import consoleLog, remove_download_log
from core.utils.network.download import run_download_direct
from core.utils.network.download import run_download_direct, seed_magnet
import os
@@ -22,6 +22,7 @@ def check_downloads(downloads):
for download in downloads:
if os.path.exists(download.path):
consoleLog(f"Existing Download: {download.title}")
seed_magnet(download.magnet_uri, download.path)
else:
consoleLog(f"Inexistent Download: {download.title}")
remove_download_log(download.magnet_uri)