Small tweak to repair

This commit is contained in:
Ben Sarmiento
2024-02-01 20:39:12 +01:00
parent 68b946c625
commit 0649a083bd
3 changed files with 27 additions and 24 deletions

View File

@@ -60,14 +60,19 @@ func NewTorrentManager(cfg config.ConfigInterface, api *realdebrid.RealDebrid, w
workerPool: workerPool,
log: log,
}
t.fixers = t.readFixersFromFile()
t.initializeDirectories()
t.refreshTorrents()
t.setNewLatestState(t.getCurrentState())
t.StartRefreshJob()
t.StartRepairJob()
t.mountDownloads()
t.StartDownloadsJob()
t.workerPool.Submit(func() {
t.refreshTorrents()
t.setNewLatestState(t.getCurrentState())
t.StartRefreshJob()
t.StartRepairJob()
})
t.workerPool.Submit(func() {
t.mountDownloads()
t.StartDownloadsJob()
})
return t
}