mirror of
https://github.com/codex-storage/deluge.git
synced 2025-02-02 06:36:15 +00:00
This commit is contained in:
parent
cbb8d4af57
commit
db76205737
@ -593,10 +593,9 @@ class Manager:
|
||||
print torrents_with_unique_ID
|
||||
# Remove torrents from core, unique_IDs and queue
|
||||
to_delete = []
|
||||
for torrent in self.state.torrents:
|
||||
print torrent
|
||||
if torrent.delete_me:
|
||||
unique_ID = torrents_with_unique_ID.index(torrent)
|
||||
for unique_ID in self.unique_IDs.keys():
|
||||
# print torrent
|
||||
if self.unique_IDs[unique_ID].delete_me:
|
||||
deluge_core.remove_torrent(unique_ID)
|
||||
to_delete.append(unique_ID)
|
||||
|
||||
@ -606,7 +605,7 @@ class Manager:
|
||||
del self.unique_IDs[unique_ID]
|
||||
|
||||
# Add torrents to queue - at the end, of course
|
||||
for unique_ID in self.unique_IDs:
|
||||
for unique_ID in self.unique_IDs.keys():
|
||||
if unique_ID not in self.state.queue:
|
||||
self.state.queue.append(unique_ID)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user