Accommodate for empty RD accounts

This commit is contained in:
Ben Sarmiento
2024-01-08 13:01:21 +01:00
parent b1116dfcca
commit 122eea2374
4 changed files with 37 additions and 31 deletions

View File

@@ -38,13 +38,11 @@ type TorrentManager struct {
// it will fetch all torrents and their info in the background
// and store them in-memory and cached in files
func NewTorrentManager(cfg config.ConfigInterface, api *realdebrid.RealDebrid, p *ants.Pool, log *logutil.Logger) *TorrentManager {
initialSate := EmptyState()
t := &TorrentManager{
Config: cfg,
Api: api,
allAccessKeys: mapset.NewSet[string](),
latestState: &initialSate,
latestState: &LibraryState{},
requiredVersion: "07.01.2024",
workerPool: p,
log: log,