mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-03 23:18:40 +00:00
-
This commit is contained in:
parent
2d8a842029
commit
cbb8d4af57
1 changed files with 0 additions and 6 deletions
|
@ -550,12 +550,6 @@ class Manager:
|
||||||
# Cache torrent file
|
# Cache torrent file
|
||||||
(temp, filename_short) = os.path.split(filename)
|
(temp, filename_short) = os.path.split(filename)
|
||||||
|
|
||||||
# Remove torrents from core, unique_IDs and queue
|
|
||||||
to_delete = []
|
|
||||||
for torrent in self.state.torrents:
|
|
||||||
if torrent.delete_me:
|
|
||||||
deluge_core.remove_torrent(torrent.unique_ID, torrent.filename)
|
|
||||||
to_delete.append(torrent.unique_ID)
|
|
||||||
if filename_short in os.listdir(self.base_dir + "/" + TORRENTS_SUBDIR):
|
if filename_short in os.listdir(self.base_dir + "/" + TORRENTS_SUBDIR):
|
||||||
raise DelugeError("Duplicate Torrent, it appears: " + filename_short)
|
raise DelugeError("Duplicate Torrent, it appears: " + filename_short)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue