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

feature: allow to replace main tracker of torrents #27

Merged
merged 5 commits into from
Sep 2, 2020

Conversation

jesec
Copy link
Owner

@jesec jesec commented Aug 28, 2020

rTorrent does not have function to remove trackers from torrents
so we only disable existing tracker and insert the new one.

This leads to duplicate listings of trackers in "Trackers" and
"Filter by trackers". We can fix this later by only using enabled
trackers for "Filter by" and "Torrent Details".

Currently this feature only deals with the main tracker (index: 0).
Combined with "Filter by trackers", it is ideal for a bulk change
of tracker URL of private torrents due to a key leak or rotation.

In the future, we can probably make the feature more sophisticated.

Repository owner deleted a comment from sonarcloud bot Aug 28, 2020
@jesec
Copy link
Owner Author

jesec commented Aug 28, 2020

Probably it should be hidden behind Advanced menu by default as it won't be useful for majority of users and can cause problems when triggered improperly.

@jesec
Copy link
Owner Author

jesec commented Aug 28, 2020

Relevant issues:
Flood-UI/flood#322
Flood-UI/flood#389
Flood-UI/flood#861

Adding tracker will be much more difficult to manage. But while we are at here, it may be a good idea to take a look at it.

Deleting tracker is a different story. rTorrent/libTorrent has no API to allow deletion of trackers. ruTorrent directly modifies torrents. It is dangerous and is not a good/stable approach. Let’s see if this is manageable via enable/disable interface. If not, an API change to rTorrent needs to be purposed and a fork might be necessary.

rTorrent does not have function to remove trackers from torrents
so we only disable existing tracker and insert the new one.

This leads to duplicate listings of trackers in "Trackers" and
"Filter by trackers". We can fix this later by only using enabled
trackers for "Filter by" and "Torrent Details".

Currently this feature only deals with the main tracker (index: 0).
Combined with "Filter by trackers", it is ideal for a bulk change
of tracker URL of private torrents due to a key leak or rotation.

In the future, we can probably make the feature more sophisticated.
This would allow feature additions to proceed without worrying
about making context menu too bloated. Plus, now developer can
hide some more advanced or work-in-progress features by default.
@jesec jesec merged commit 0635671 into master Sep 2, 2020
@jesec jesec deleted the feature/set-main-tracker branch September 2, 2020 10:53
@jesec jesec added this to the 4.0 milestone Oct 15, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant