Rework torrent manager handling of update
This commit is contained in:
@@ -23,6 +23,7 @@ type ConfigInterface interface {
|
||||
GetRateLimitSleepSeconds() int
|
||||
GetRealDebridTimeout() int
|
||||
GetRetriesUntilFailed() int
|
||||
EnableDownloadCache() bool
|
||||
}
|
||||
|
||||
type ZurgConfig struct {
|
||||
@@ -44,6 +45,7 @@ type ZurgConfig struct {
|
||||
ForceIPv6 bool `yaml:"force_ipv6"`
|
||||
RealDebridTimeout int `yaml:"realdebrid_timeout_secs"`
|
||||
RetriesUntilFailed int `yaml:"retries_until_failed"`
|
||||
UseDownloadCache bool `yaml:"use_download_cache"`
|
||||
}
|
||||
|
||||
func (z *ZurgConfig) GetToken() string {
|
||||
@@ -144,3 +146,7 @@ func (z *ZurgConfig) GetRetriesUntilFailed() int {
|
||||
}
|
||||
return z.RetriesUntilFailed
|
||||
}
|
||||
|
||||
func (z *ZurgConfig) EnableDownloadCache() bool {
|
||||
return z.UseDownloadCache
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user