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

Add Trackers from a URL list #8343

Closed
teddyrogers opened this issue Dec 15, 2024 · 3 comments · Fixed by #8446
Closed

Add Trackers from a URL list #8343

teddyrogers opened this issue Dec 15, 2024 · 3 comments · Fixed by #8446
Assignees
Milestone

Comments

@teddyrogers
Copy link

Feature request, when adding a tracker, instead of accepting only individual tracker URL's allow adding a compiled list from a link, e.g.

https://raw.githubusercontent.com/ngosang/trackerslist/master/trackers_all.txt

qBittorrent has something similar and is able to download a µTorrent compatible list and add the trackers from the list.

It would also be good if the URL trackers list was made permanent (available) to add even after closing and restarting Tribler, without manually copy pasting the URL each time.

Having the URL list available to add (either manually or automatically) whilst importing new torrents would also be great.

image

@qstokkink
Copy link
Contributor

Thanks for the suggestion! I think we can look at this for 8.1.0.

@qstokkink qstokkink added this to the 8.1.0 milestone Dec 16, 2024
@qstokkink
Copy link
Contributor

qstokkink commented Jan 22, 2025

I'm thinking of implementing this as follows.

GUI:

  • Under the Settings / General / Default download settings add a Default trackers file: [input field] [Browse button].

Config:

  • Add a key ["libtorrent"]["download_defaults"]["trackers_file"] that contains a str pointing to a file.

DownloadManager:

@qstokkink
Copy link
Contributor

qstokkink commented Feb 19, 2025

Upon second thought: if we add the default trackers in DownloadManager.start_download(), they will be re-added after manual removal (when loading the .conf file). It's probably best to only do this once, after a user added a torrent: through the REST API. In that case, we have to add the trackers after this code:

if tdef:
download = await self.download_manager.start_download(tdef=tdef, config=download_config)
elif uri:
download = await self.download_manager.start_download_from_uri(uri, config=download_config)

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

Successfully merging a pull request may close this issue.

2 participants