refactor: remove commented-out code for torrent actions in main.py and torrent_downloader.py

This commit is contained in:
Hachi-R 2024-12-22 09:08:36 -03:00
parent abb3db4e30
commit 93712a7f5e
2 changed files with 0 additions and 50 deletions

View file

@ -131,13 +131,6 @@ def action():
if downloader:
downloader.cancel_download()
# elif action == 'kill-torrent':
# torrent_downloader.abort_session()
# torrent_downloader = None
# elif action == 'pause-seeding':
# torrent_downloader.pause_seeding(game_id)
# elif action == 'resume-seeding':
# torrent_downloader.resume_seeding(game_id, data['url'], data['save_path'])
else:
return jsonify({"error": "Invalid action"}), 400