mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 15:08:40 +00:00
This commit is contained in:
parent
cbb8d4af57
commit
db76205737
1 changed files with 6 additions and 7 deletions
|
@ -593,10 +593,9 @@ class Manager:
|
||||||
print torrents_with_unique_ID
|
print torrents_with_unique_ID
|
||||||
# Remove torrents from core, unique_IDs and queue
|
# Remove torrents from core, unique_IDs and queue
|
||||||
to_delete = []
|
to_delete = []
|
||||||
for torrent in self.state.torrents:
|
for unique_ID in self.unique_IDs.keys():
|
||||||
print torrent
|
# print torrent
|
||||||
if torrent.delete_me:
|
if self.unique_IDs[unique_ID].delete_me:
|
||||||
unique_ID = torrents_with_unique_ID.index(torrent)
|
|
||||||
deluge_core.remove_torrent(unique_ID)
|
deluge_core.remove_torrent(unique_ID)
|
||||||
to_delete.append(unique_ID)
|
to_delete.append(unique_ID)
|
||||||
|
|
||||||
|
@ -606,7 +605,7 @@ class Manager:
|
||||||
del self.unique_IDs[unique_ID]
|
del self.unique_IDs[unique_ID]
|
||||||
|
|
||||||
# Add torrents to queue - at the end, of course
|
# 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:
|
if unique_ID not in self.state.queue:
|
||||||
self.state.queue.append(unique_ID)
|
self.state.queue.append(unique_ID)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue