mirror of
https://github.com/hydralauncher/hydra.git
synced 2026-01-26 20:31:03 +00:00
feat: add initial seeding logic and separation between seeding from downloading
This commit is contained in:
@@ -107,6 +107,8 @@ class Handler(BaseHTTPRequestHandler):
|
||||
elif data['action'] == 'kill-torrent':
|
||||
torrent_downloader.abort_session()
|
||||
torrent_downloader = None
|
||||
elif data['action'] == 'start-seeding':
|
||||
torrent_downloader.start_seeding(data['game_id'], data['magnet'], data['save_path'])
|
||||
|
||||
self.send_response(200)
|
||||
self.end_headers()
|
||||
|
||||
Reference in New Issue
Block a user