Fix logic of fetching torrents
This commit is contained in:
@@ -165,7 +165,7 @@ func (rd *RealDebrid) GetTorrents(onlyOne bool) ([]Torrent, int, error) {
|
||||
allTorrents = append(allTorrents, result.torrents...)
|
||||
totalCount := result.totalCount
|
||||
|
||||
if onlyOne || totalCount == len(allTorrents) {
|
||||
if onlyOne {
|
||||
return allTorrents, totalCount, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user