mirror of
https://git.deluge-torrent.org/deluge
synced 2025-04-22 04:24:51 +00:00
fix ratio and remember trackers
This commit is contained in:
parent
b144525cab
commit
3733b91d32
1 changed files with 14 additions and 0 deletions
|
@ -162,6 +162,20 @@ class DelugeGTK:
|
|||
self.dht_timer = 0
|
||||
self.dht_skip = False
|
||||
self.memory_timer = 0
|
||||
for torrent in self.manager.get_queue():
|
||||
unique_ID = self.manager.get_torrent_unique_id(torrent)
|
||||
if self.manager.unique_IDs[unique_ID].uploaded_memory:
|
||||
self.manager.unique_IDs[unique_ID].initial_uploaded_memory = \
|
||||
self.manager.unique_IDs[unique_ID].uploaded_memory
|
||||
try:
|
||||
if self.manager.unique_IDs[unique_ID].trackers:
|
||||
try:
|
||||
self.manager.replace_trackers(unique_ID, \
|
||||
self.manager.unique_IDs[unique_ID].trackers)
|
||||
except:
|
||||
pass
|
||||
except:
|
||||
pass
|
||||
|
||||
def connect_signals(self):
|
||||
self.wtree.signal_autoconnect({
|
||||
|
|
Loading…
Add table
Reference in a new issue