From 06c4f7af69f5aa922ca9110dde1e8e209acd6d42 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 17 Nov 2008 09:30:46 +0000 Subject: [PATCH] Fix setting default stop_at_ratio settings for torrents --- deluge/core/torrent.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py index 4a263f174..5e792bbf9 100644 --- a/deluge/core/torrent.py +++ b/deluge/core/torrent.py @@ -60,9 +60,6 @@ class TorrentOptions(dict): "max_upload_slots": "max_upload_slots_per_torrent", "prioritize_first_last_pieces": "prioritize_first_last_pieces", "auto_managed": "auto_managed", - "stop_at_ratio": False, - "stop_ratio": 2.0, - "remove_at_ratio": False, "move_completed": "move_completed", "move_completed_path": "move_completed_path", "file_priorities": [], @@ -70,6 +67,9 @@ class TorrentOptions(dict): "download_location": "download_location", "add_paused": "add_paused" } + super(TorrentOptions, self).__setitem__("stop_at_ratio", False) + super(TorrentOptions, self).__setitem__("stop_ratio", 2.0) + super(TorrentOptions, self).__setitem__("remove_at_ratio", False) def items(self): i = super(TorrentOptions, self).items()