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,
|
unique_ID = deluge_core.add_torrent(torrent.filename,
|
||||||
torrent.save_dir,
|
torrent.save_dir,
|
||||||
torrent.compact)
|
torrent.compact)
|
||||||
# Apply per torrent prefs after torrent added to core
|
|
||||||
self.apply_prefs_per_torrent(unique_ID)
|
|
||||||
except DelugeError, e:
|
except DelugeError, e:
|
||||||
print "Error:", e
|
print "Error:", e
|
||||||
del self.state.torrents[torrent]
|
del self.state.torrents[torrent]
|
||||||
@ -859,6 +857,9 @@ class Manager:
|
|||||||
self.unique_IDs[unique_ID] = torrent
|
self.unique_IDs[unique_ID] = torrent
|
||||||
self.state.torrents[torrent] = unique_ID
|
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
|
# Remove torrents from core, unique_IDs and queue
|
||||||
to_delete = []
|
to_delete = []
|
||||||
for unique_ID in self.unique_IDs.keys():
|
for unique_ID in self.unique_IDs.keys():
|
||||||
|
Loading…
x
Reference in New Issue
Block a user