Skip to content

Add 'remove all finished torrents' feature#157

Open
asch wants to merge 1 commit into
fagga:masterfrom
asch:master
Open

Add 'remove all finished torrents' feature#157
asch wants to merge 1 commit into
fagga:masterfrom
asch:master

Conversation

@asch

@asch asch commented Jul 29, 2015

Copy link
Copy Markdown

Add new keybindigs x/X for removing all finished torrents. I.e. every
paused torrent with reached seed ratio will be deleted.

Add new keybindigs x/X for removing all finished torrents. I.e. every
paused torrent with reached seed ratio will be deleted.

@alexkubica alexkubica left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wanted to request for this feature and then I saw your PR, thanks for the work you've done!

Comment thread transmission-remote-cli

def remove_finished_torrents(self, delete_local_data = False):
candidates = [torrent for torrent in self.torrents
if torrent['status'] == Transmission.STATUS_STOPPED

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the status should be compared to Transmission.STATUS_SEED or Transmission.STATUS_SEED_WAIT.
I think Transmission.STATUS_STOPPED means the torrent was paused, but it may not be finished downloading yet.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am referencing line 1514.

Comment thread transmission-remote-cli
def remove_finished_torrents(self, delete_local_data = False):
candidates = [torrent for torrent in self.torrents
if torrent['status'] == Transmission.STATUS_STOPPED
and torrent['uploadRatio'] >= torrent['seedRatioLimit']]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this check should be omitted.
People might want to remove all finished torrents regardless the seed ratio.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am referencing line 1515.

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.

2 participants