Assign links outside repair

This commit is contained in:
Ben Adrian Sarmiento
2024-06-05 10:37:38 +02:00
parent c62cdeace8
commit fa26553933
4 changed files with 33 additions and 20 deletions

View File

@@ -366,12 +366,12 @@ func (rd *RealDebrid) GetDownloads() []Download {
// reset allDownloads
allDownloads := []Download{}
page := 1
limit := 100
limit := 250
// compute ceiling of totalCount / limit
maxPages := (totalCount + limit - 1) / limit
rd.log.Debugf("Total downloads count is %d", totalCount)
maxParallelThreads := 8
maxParallelThreads := 4
if maxPages < maxParallelThreads {
maxParallelThreads = maxPages
}