Change defaults

This commit is contained in:
Ben Sarmiento
2024-01-27 16:47:05 +01:00
parent b44f2a4b63
commit 1913498cbe
2 changed files with 7 additions and 5 deletions

View File

@@ -98,7 +98,7 @@ func (z *ZurgConfig) GetProxy() string {
func (z *ZurgConfig) GetNumOfWorkers() int { func (z *ZurgConfig) GetNumOfWorkers() int {
if z.NumOfWorkers == 0 { if z.NumOfWorkers == 0 {
return 50 return 32
} }
return z.NumOfWorkers return z.NumOfWorkers
} }
@@ -112,7 +112,7 @@ func (z *ZurgConfig) GetRefreshEverySeconds() int {
func (z *ZurgConfig) GetRepairEveryMinutes() int { func (z *ZurgConfig) GetRepairEveryMinutes() int {
if z.RepairEveryMins == 0 { if z.RepairEveryMins == 0 {
return 10 return 60
} }
return z.RepairEveryMins return z.RepairEveryMins
} }
@@ -127,7 +127,7 @@ func (z *ZurgConfig) GetOnLibraryUpdate() string {
func (z *ZurgConfig) GetNetworkBufferSize() int { func (z *ZurgConfig) GetNetworkBufferSize() int {
if z.NetworkBufferSize == 0 { if z.NetworkBufferSize == 0 {
return 64 * 1024 // 64kb return 1024 * 1024 * 4 // 4MB
} }
return z.NetworkBufferSize return z.NetworkBufferSize
} }
@@ -158,7 +158,7 @@ func (z *ZurgConfig) ShouldForceIPv6() bool {
func (z *ZurgConfig) GetRetriesUntilFailed() int { func (z *ZurgConfig) GetRetriesUntilFailed() int {
if z.RetriesUntilFailed == 0 { if z.RetriesUntilFailed == 0 {
return 5 return 2
} }
return z.RetriesUntilFailed return z.RetriesUntilFailed
} }
@@ -169,7 +169,7 @@ func (z *ZurgConfig) EnableDownloadMount() bool {
func (z *ZurgConfig) GetRealDebridTimeout() int { func (z *ZurgConfig) GetRealDebridTimeout() int {
if z.RealDebridTimeout == 0 { if z.RealDebridTimeout == 0 {
return 10 return 4
} }
return z.RealDebridTimeout return z.RealDebridTimeout
} }

View File

@@ -106,6 +106,8 @@ func (t *TorrentManager) repairAll(torrent *Torrent) {
}) })
if hasBrokenFiles { if hasBrokenFiles {
info.BrokenLinks = torrent.BrokenLinks info.BrokenLinks = torrent.BrokenLinks
} else {
info.BrokenLinks = mapset.NewSet[string]()
} }
}) })
} }