Use night mode for http mount, reduce got torrents log

This commit is contained in:
Ben Adrian Sarmiento
2024-07-21 02:47:48 +02:00
parent 8d06ce88d3
commit d0168283c9
2 changed files with 7 additions and 1 deletions

View File

@@ -65,7 +65,9 @@ func (rd *RealDebrid) GetTorrents(onlyOne bool) ([]Torrent, int, error) {
}
torrentPages[result.page-1] = result.torrents
totalFetched += len(result.torrents)
rd.log.Debugf("Got %d/%d torrents", totalFetched, result.total)
if i%4 == 0 || i == maxPages {
rd.log.Debugf("Got %d/%d torrents", totalFetched, result.total)
}
}
allTorrents := firstPage.torrents
for _, page := range torrentPages {