Fix deletes again
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user