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

Support trackers edition in rtorrent #838

Open
trim21 opened this issue Jan 7, 2025 Discussed in #837 · 0 comments
Open

Support trackers edition in rtorrent #838

trim21 opened this issue Jan 7, 2025 Discussed in #837 · 0 comments
Labels
enhancement New feature or request

Comments

@trim21
Copy link
Collaborator

trim21 commented Jan 7, 2025

Discussed in #837

Originally posted by gallyamb January 6, 2025
rakshasa/rtorrent support editing trackers list: add new trackers, enable/disable existing ones. Would be great, if Flood could provide an UI for this actions

as reference:

    def d_add_tracker(self, info_hash: str, url: str, *, group: int = 0) -> None:
        """add a tracker to download"""
        self.rpc.d.tracker.insert(info_hash, group, url)

    def t_enable_tracker(self, info_hash: str, tracker_index: int) -> None:
        """enable a tracker of download"""
        self.rpc.t.is_enabled.set(f"{info_hash}:t{tracker_index}", 1)

    def t_disable_tracker(self, info_hash: str, tracker_index: int) -> None:
        """disable a tracker of download"""
        self.rpc.t.is_enabled.set(f"{info_hash}:t{tracker_index}", 0)
@trim21 trim21 added the enhancement New feature or request label Jan 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant