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 21
21
# If empty - will affect all torrents
22
22
'status_filter' : (),
23
23
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
+
24
29
# A list of URLs where to get the tracker lists from.
25
30
# The lists are combined into one with duplicates removed.
26
31
# The trackers from these lists are checked by looking up the URL's hostname in DNS.
@@ -248,6 +253,10 @@ def readLocalLists():
248
253
for trk in t .trackers :
249
254
ttrk .add (getattr (trk , 'fields' , trk ).get ('announce' ))
250
255
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
+
251
260
diff = trackers - ttrk
252
261
253
262
if diff :
You can’t perform that action at this time.
0 commit comments