Refactor torrent fetching

This commit is contained in:
Ben Sarmiento
2024-04-30 00:16:38 +02:00
parent 00bd0763d6
commit 102512f7d3
4 changed files with 77 additions and 90 deletions

View File

@@ -15,7 +15,7 @@ import (
)
func (t *TorrentManager) refreshTorrents(isInitialRun bool) []string {
instances, _, err := t.Api.GetTorrents(0, false)
instances, _, err := t.Api.GetTorrents(false)
if err != nil {
t.log.Warnf("Cannot get torrents: %v", err)
return nil