Fixes
This commit is contained in:
@@ -22,6 +22,7 @@ type ConfigInterface interface {
|
||||
GetRealDebridTimeout() int
|
||||
GetRetriesUntilFailed() int
|
||||
EnableDownloadCache() bool
|
||||
GetRateLimitSleepSeconds() int
|
||||
}
|
||||
|
||||
type ZurgConfig struct {
|
||||
@@ -34,6 +35,7 @@ type ZurgConfig struct {
|
||||
CanRepair bool `yaml:"enable_repair"`
|
||||
OnLibraryUpdate string `yaml:"on_library_update"`
|
||||
NetworkBufferSize int `yaml:"network_buffer_size"`
|
||||
RateLimitSleepSeconds int `yaml:"rate_limit_sleep_secs"`
|
||||
RetainFolderNameExtension bool `yaml:"retain_folder_name_extension"`
|
||||
RetainRDTorrentName bool `yaml:"retain_rd_torrent_name"`
|
||||
PreferredHosts []string `yaml:"preferred_hosts"`
|
||||
@@ -132,3 +134,10 @@ func (z *ZurgConfig) GetRealDebridTimeout() int {
|
||||
}
|
||||
return z.RealDebridTimeout
|
||||
}
|
||||
|
||||
func (z *ZurgConfig) GetRateLimitSleepSeconds() int {
|
||||
if z.RateLimitSleepSeconds == 0 {
|
||||
return 4
|
||||
}
|
||||
return z.RateLimitSleepSeconds
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user