flood icon indicating copy to clipboard operation
flood copied to clipboard

Support trackers edition in rtorrent

Open trim21 opened this issue 11 months ago • 0 comments

Discussed in https://github.com/jesec/flood/discussions/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 avatar Jan 07 '25 05:01 trim21