Change default get downloads value to every 1440 mins (was 60)

This commit is contained in:
Ben Sarmiento
2024-05-27 21:22:18 +02:00
parent 964fdfcbf9
commit 0c64cda1d8
2 changed files with 3 additions and 3 deletions

View File

@@ -131,7 +131,7 @@ func (z *ZurgConfig) GetRepairEveryMins() int {
func (z *ZurgConfig) GetDownloadsEveryMins() int { func (z *ZurgConfig) GetDownloadsEveryMins() int {
if z.DownloadsEveryMins == 0 { if z.DownloadsEveryMins == 0 {
return 60 return 1440
} }
return z.DownloadsEveryMins return z.DownloadsEveryMins
} }

View File

@@ -79,7 +79,7 @@ func (t *TorrentManager) invokeRepair(torrent *Torrent) {
func (t *TorrentManager) TriggerRepair(torrent *Torrent) { func (t *TorrentManager) TriggerRepair(torrent *Torrent) {
if torrent != nil { if torrent != nil {
if err := torrent.State.Event(context.Background(), "break_torrent"); err != nil { if err := torrent.State.Event(context.Background(), "break_torrent"); err != nil {
t.repairLog.Errorf("Failed to mark torrent %s as broken: %v", t.GetKey(torrent), err) // t.repairLog.Errorf("Failed to mark torrent %s as broken: %v", t.GetKey(torrent), err)
return return
} }
if !t.Config.EnableRepair() { if !t.Config.EnableRepair() {
@@ -155,7 +155,7 @@ func (t *TorrentManager) Repair(torrent *Torrent, wg *sync.WaitGroup) {
} }
if err := torrent.State.Event(context.Background(), "repair_torrent"); err != nil && t.inProgressHashes.Contains(torrent.Hash) { if err := torrent.State.Event(context.Background(), "repair_torrent"); err != nil && t.inProgressHashes.Contains(torrent.Hash) {
t.repairLog.Errorf("Failed to mark torrent %s as under repair: %v", t.GetKey(torrent), err) // t.repairLog.Errorf("Failed to mark torrent %s as under repair: %v", t.GetKey(torrent), err)
return return
} }
t.repair(torrent) t.repair(torrent)