Remove rate limit config
This commit is contained in:
@@ -30,7 +30,6 @@ type ConfigInterface interface {
|
||||
GetApiTimeoutSecs() int
|
||||
GetDownloadTimeoutSecs() int
|
||||
GetRetriesUntilFailed() int
|
||||
GetRateLimitSleepSecs() int
|
||||
GetRarAction() string
|
||||
GetDownloadsEveryMins() int
|
||||
GetDumpTorrentsEveryMins() int
|
||||
@@ -55,8 +54,6 @@ type ZurgConfig struct {
|
||||
Password string `yaml:"password" json:"password"`
|
||||
PlayableExtensions []string `yaml:"addl_playable_extensions" json:"addl_playable_extensions"`
|
||||
Port string `yaml:"port" json:"port"`
|
||||
Proxy string `yaml:"proxy" json:"proxy"`
|
||||
RateLimitSleepSecs int `yaml:"rate_limit_sleep_secs" json:"rate_limit_sleep_secs"`
|
||||
RefreshEverySecs int `yaml:"check_for_changes_every_secs" json:"check_for_changes_every_secs"`
|
||||
RepairEveryMins int `yaml:"repair_every_mins" json:"repair_every_mins"`
|
||||
RetainFolderNameExtension bool `yaml:"retain_folder_name_extension" json:"retain_folder_name_extension"`
|
||||
@@ -191,13 +188,6 @@ func (z *ZurgConfig) GetDownloadTimeoutSecs() int {
|
||||
return z.DownloadTimeoutSecs
|
||||
}
|
||||
|
||||
func (z *ZurgConfig) GetRateLimitSleepSecs() int {
|
||||
if z.RateLimitSleepSecs == 0 {
|
||||
return 4
|
||||
}
|
||||
return z.RateLimitSleepSecs
|
||||
}
|
||||
|
||||
// GetRarAction returns the action to take when a rar'ed torrent is found
|
||||
// none: do nothing (mark as unrepairable)
|
||||
// extract: extract the rar'ed torrent
|
||||
|
||||
Reference in New Issue
Block a user