Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FR: Option to Auto-Delete .torrent files upon download completion #8500

Open
Concept211 opened this issue Mar 10, 2025 · 1 comment
Open

Comments

@Concept211
Copy link

Create an option in the settings to auto-delete the .torrent file upon completion or when Tribler imports the torrent.

I'm sure I'm not the only one with this issue and is a standard feature with every other bittorrent client. Would be greatly appreciated! 👍

@qstokkink
Copy link
Contributor

I think we can fit this feature into this code:

if state.get_status() == DownloadStatus.SEEDING:
mode = self.download_manager.config.get("libtorrent/download_defaults/seeding_mode")
seeding_ratio = self.download_manager.config.get("libtorrent/download_defaults/seeding_ratio")
seeding_time = self.download_manager.config.get("libtorrent/download_defaults/seeding_time")
if (mode == "never" or
(mode == "ratio" and state.get_all_time_ratio() >= seeding_ratio) or
(mode == "time" and state.get_seeding_time() >= seeding_time)):
self.stop()

Instead of stopping (self.stop()) after the user-defined seeding ratio has been achieved, we can remove the download (if desired by the user). I think it makes sense to put this setting in the GUI next to these seeding ratio settings, in the Seeding tab.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants