Skip to content

Commit dd4822d

Browse files
Merge branch 'Phoenix09-master'
2 parents a00430d + e6cdf39 commit dd4822d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

defaulttrackers/core.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@
4343
import deluge.component as component
4444
import deluge.configmanager
4545
from deluge.core.rpcserver import export
46-
from pprint import pprint
4746

4847
DEFAULT_PREFS = {
4948
"trackers": [
@@ -70,6 +69,8 @@ def update(self):
7069

7170
def on_torrent_added(self, torrent_id):
7271
torrent = component.get("TorrentManager")[torrent_id]
72+
if (torrent.torrent_info and torrent.torrent_info.priv()) or torrent.get_status(["private"])["private"]:
73+
return
7374
trackers = torrent.get_status(["trackers"])["trackers"]
7475
existing_urls = [tracker["url"] for tracker in trackers]
7576
got_new_trackers = False

0 commit comments

Comments
 (0)