Accommodate for empty RD accounts
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user