summaryrefslogtreecommitdiffstats
path: root/deluge/core/torrent.py
diff options
context:
space:
mode:
authorDjLegolas <DjLegolas@protonmail.com>2020-05-02 21:21:53 +0300
committerCalum Lind <calumlind+deluge@gmail.com>2021-04-17 16:55:54 +0100
commit8676a0d2a0cc0fc36f2c366194f188ea947f4b1f (patch)
treedd3295a159273560bc140eded3920953f2d24f6d /deluge/core/torrent.py
parent3ec23ad96bfa205c8ae23b662c6da153efbfed3a (diff)
downloaddeluge-8676a0d2a0cc0fc36f2c366194f188ea947f4b1f.tar.gz
deluge-8676a0d2a0cc0fc36f2c366194f188ea947f4b1f.tar.bz2
deluge-8676a0d2a0cc0fc36f2c366194f188ea947f4b1f.zip
[Core] Improve on_alert_tracker_error for lt >= 1.2
libtorrent 1.2 added endpoint struct to each tracker, to prevent false updates we will need to verify that at least one endpoint to the errored tracker is working. if there is at least one working, it will not set the tracker status to error and set it to `Announce OK`. otherwise, it will use the error message from the alert. Refs: https://dev.deluge-torrent.org/ticket/3384
Diffstat (limited to 'deluge/core/torrent.py')
-rw-r--r--deluge/core/torrent.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/deluge/core/torrent.py b/deluge/core/torrent.py
index 1676ff6ca..9dc2d4163 100644
--- a/deluge/core/torrent.py
+++ b/deluge/core/torrent.py
@@ -994,6 +994,8 @@ class Torrent(object):
call to get_status based on the session_id
update (bool): If True the status will be updated from libtorrent
if False, the cached values will be returned
+ all_keys (bool): If True return all keys while ignoring the keys param
+ if False, return only the requested keys
Returns:
dict: a dictionary of the status keys and their values