feat: add simple cache, due to jackett poor performance

This commit is contained in:
Simon Ding
2024-08-07 10:42:12 +08:00
parent 466596345d
commit bd385d4f85
3 changed files with 55 additions and 17 deletions

View File

@@ -159,7 +159,7 @@ func searchWithTorznab(db *db.Client, q string) []torznab.Result {
go func() {
log.Debugf("search torznab %v with %v", tor.Name, q)
defer wg.Done()
resp, err := torznab.Search(tor, tor.ApiKey, q)
resp, err := torznab.Search(tor, q)
if err != nil {
log.Errorf("search %s error: %v", tor.Name, err)
return