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
+6 -1
View File
@@ -4,6 +4,7 @@ from core.utils.data.tracker import get_magnet_link
from core.network.libtorrent_wrapper import add_download
from core.utils.general.wrappers import run_thread
from core.utils.logging.logs import add_download_log
from core.network.libtorrent_int import add_seed
import threading
@@ -25,4 +26,8 @@ def run_download(item, posts, post_titles):
def run_download_direct(magnet_uri):
consoleLog(f"Direct download: {magnet_uri[:60]}")
add_download(magnet_uri)
add_download_log("Direct Download", "", magnet_uri, False)
add_download_log("Direct Download", "", magnet_uri, False)
def seed_magnet(magnet_uri, file_path):
consoleLog(f"Seeding: {magnet_uri[:60]}")
add_seed(magnet_uri, file_path)