Repair adjustments 2

This commit is contained in:
Ben Sarmiento
2024-05-01 14:06:54 +02:00
parent 130cc0d7b3
commit b6b59b22e6
6 changed files with 71 additions and 85 deletions

View File

@@ -192,7 +192,9 @@ func (rd *RealDebrid) GetTorrents(onlyOne bool) ([]Torrent, int, error) {
allTorrents = append(allTorrents, res.torrents...)
}
if len(allTorrents) >= totalCount {
rd.log.Debugf("Got %d/%d torrents", len(allTorrents), totalCount)
if len(allTorrents) >= totalCount || page >= maxPages {
break
}