We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c3445ea commit e6cdf39Copy full SHA for e6cdf39
defaulttrackers/core.py
@@ -43,7 +43,6 @@
43
import deluge.component as component
44
import deluge.configmanager
45
from deluge.core.rpcserver import export
46
-from pprint import pprint
47
48
DEFAULT_PREFS = {
49
"trackers": [
@@ -70,7 +69,7 @@ def update(self):
70
69
71
def on_torrent_added(self, torrent_id):
72
torrent = component.get("TorrentManager")[torrent_id]
73
- if torrent.torrent_info.priv() or torrent.get_status(["private"])["private"]:
+ if (torrent.torrent_info and torrent.torrent_info.priv()) or torrent.get_status(["private"])["private"]:
74
return
75
trackers = torrent.get_status(["trackers"])["trackers"]
76
existing_urls = [tracker["url"] for tracker in trackers]
0 commit comments