From c1d2d4f0ae57b40a20ea0a7ec420e91dba2c6058 Mon Sep 17 00:00:00 2001 From: Alex Dedul Date: Thu, 16 Aug 2007 07:30:09 +0000 Subject: [PATCH] Per torrent preferences tweaks. --- src/core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/core.py b/src/core.py index f64956bc8..177772e40 100644 --- a/src/core.py +++ b/src/core.py @@ -847,8 +847,6 @@ class Manager: unique_ID = deluge_core.add_torrent(torrent.filename, torrent.save_dir, torrent.compact) - # Apply per torrent prefs after torrent added to core - self.apply_prefs_per_torrent(unique_ID) except DelugeError, e: print "Error:", e del self.state.torrents[torrent] @@ -858,6 +856,9 @@ class Manager: ret = unique_ID self.unique_IDs[unique_ID] = torrent self.state.torrents[torrent] = unique_ID + + # Apply per torrent prefs after torrent added to core + self.apply_prefs_per_torrent(unique_ID) # Remove torrents from core, unique_IDs and queue to_delete = []