Fix deletes again

This commit is contained in:
Ben Sarmiento
2023-12-06 03:16:34 +01:00
parent 6ef54a9891
commit dd2a9d23f1
2 changed files with 16 additions and 16 deletions

View File

@@ -48,7 +48,7 @@ func NewTorrentManager(cfg config.ConfigInterface, api *realdebrid.RealDebrid, p
Api: api,
accessKeySet: set.NewStringSet(),
latestState: &initialSate,
requiredVersion: "03.12.2023",
requiredVersion: "06.12.2023",
workerPool: p,
log: log,
}
@@ -111,7 +111,7 @@ func NewTorrentManager(cfg config.ConfigInterface, api *realdebrid.RealDebrid, p
}
func (t *TorrentManager) RefreshTorrents() {
instances, _, err := t.Api.GetTorrents(0)
instances, _, err := t.Api.GetTorrents(10)
if err != nil {
t.log.Warnf("Cannot get torrents: %v\n", err)
return
@@ -244,11 +244,11 @@ func (t *TorrentManager) getMoreInfo(rdTorrent realdebrid.Torrent) *Torrent {
torrent.InProgressIDs.Add(info.ID)
}
infoCache.Set(rdTorrent.ID, &torrent)
err = t.writeTorrentToFile(rdTorrent.ID, &torrent)
if err != nil {
t.log.Warnf("Cannot write torrent to file: %v", err)
}
infoCache.Set(rdTorrent.ID, &torrent)
return &torrent
}