feat: add prowlarr enable button

This commit is contained in:
Simon Ding
2024-11-04 23:48:52 +08:00
parent 36b72e6461
commit bce4d93ab1
5 changed files with 35 additions and 13 deletions

View File

@@ -233,7 +233,7 @@ func searchWithTorznab(db *db.Client, t prowlarr.ProwlarrSupportType, queries ..
allTorznab := db.GetAllTorznabInfo()
p, err := db.GetProwlarrSetting()
if err == nil { //prowlarr exists
if err == nil && !p.Disabled { //prowlarr exists
c := prowlarr.New(p.ApiKey, p.URL)
all, err := c.GetIndexers(t)
if err != nil {