File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed
Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change 2121 # If empty - will affect all torrents
2222 'status_filter' : (),
2323
24+ # Ignore torrents that contain any of these trackers.
25+ # This is useful, e.g., for excluding torrents from private trackers.
26+ # trackers are matched by substring, so you can cover https://my.site/announce with just my.site
27+ 'tracker_filter' : [],
28+
2429 # A list of URLs where to get the tracker lists from.
2530 # The lists are combined into one with duplicates removed.
2631 # The trackers from these lists are checked by looking up the URL's hostname in DNS.
@@ -248,6 +253,10 @@ def readLocalLists():
248253 for trk in t .trackers :
249254 ttrk .add (getattr (trk , 'fields' , trk ).get ('announce' ))
250255
256+ if any (tracker in url for url in ttrk for tracker in config ['tracker_filter' ]):
257+ dbg ('{}: skipping due to tracker filter' .format (t .name ))
258+ continue
259+
251260 diff = trackers - ttrk
252261
253262 if diff :
You can’t perform that action at this time.
0 commit comments