mirror of
https://github.com/codex-storage/deluge.git
synced 2025-03-01 03:20:44 +00:00
Per torrent preferences tweaks.
This commit is contained in:
parent
c9ba1cd207
commit
c1d2d4f0ae
@ -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 = []
|
||||
|
Loading…
x
Reference in New Issue
Block a user