From fc3d3878bcacb07f02e22981a1dd8bbfa5e8f8f6 Mon Sep 17 00:00:00 2001 From: Simon Ding Date: Thu, 1 Aug 2024 20:12:42 +0800 Subject: [PATCH] feat: disable indexer --- server/core/torrent.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/server/core/torrent.go b/server/core/torrent.go index a31288a..3858b4f 100644 --- a/server/core/torrent.go +++ b/server/core/torrent.go @@ -131,6 +131,9 @@ func searchWithTorznab(db *db.Client, q string) []torznab.Result { var wg sync.WaitGroup for _, tor := range allTorznab { + if tor.Disabled { + continue + } wg.Add(1) go func() { log.Debugf("search torznab %v with %v", tor.Name, q)