mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-11 10:59:00 +00:00
remove fastresume after adding torrent that's not a seed
This commit is contained in:
parent
b403530fab
commit
3169b460f0
1 changed files with 4 additions and 0 deletions
|
@ -861,6 +861,10 @@ class Manager:
|
||||||
|
|
||||||
# Apply per torrent prefs after torrent added to core
|
# Apply per torrent prefs after torrent added to core
|
||||||
self.apply_prefs_per_torrent(unique_ID)
|
self.apply_prefs_per_torrent(unique_ID)
|
||||||
|
#remove fastresume for non-seed
|
||||||
|
torrent_state = self.get_core_torrent_state(unique_ID, False)
|
||||||
|
if not torrent_state['is_seed']:
|
||||||
|
os.remove(self.unique_IDs[unique_ID].filename + ".fastresume")
|
||||||
|
|
||||||
# Remove torrents from core, unique_IDs and queue
|
# Remove torrents from core, unique_IDs and queue
|
||||||
to_delete = []
|
to_delete = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue