Immediate cleanup to prevent inconsistencies

This commit is contained in:
Ben Sarmiento
2024-05-28 03:51:01 +02:00
parent 2504b31d4c
commit 7470629486
5 changed files with 34 additions and 5 deletions

View File

@@ -175,7 +175,7 @@ func (rd *RealDebrid) GetTorrents(onlyOne bool) ([]Torrent, int, error) {
// compute ceiling of totalCount / limit
maxPages := (totalCount + rd.cfg.GetTorrentsCount() - 1) / rd.cfg.GetTorrentsCount()
rd.log.Debugf("Torrents total count is %d, max pages is %d", totalCount, maxPages)
maxParallelThreads := 4
maxParallelThreads := 2
if maxPages < maxParallelThreads {
maxParallelThreads = maxPages
}