Add logs route, add rar handler
This commit is contained in:
@@ -24,6 +24,7 @@ type ConfigInterface interface {
|
||||
GetRetriesUntilFailed() int
|
||||
EnableDownloadCache() bool
|
||||
GetRateLimitSleepSeconds() int
|
||||
ShouldDeleteRarFiles() bool
|
||||
}
|
||||
|
||||
type ZurgConfig struct {
|
||||
@@ -45,6 +46,7 @@ type ZurgConfig struct {
|
||||
RealDebridTimeout int `yaml:"realdebrid_timeout_secs" json:"realdebrid_timeout_secs"`
|
||||
RetriesUntilFailed int `yaml:"retries_until_failed" json:"retries_until_failed"`
|
||||
UseDownloadCache bool `yaml:"use_download_cache" json:"use_download_cache"`
|
||||
DeleteRarFiles bool `yaml:"delete_rar_files" json:"delete_rar_files"`
|
||||
}
|
||||
|
||||
func (z *ZurgConfig) GetConfig() ZurgConfig {
|
||||
@@ -146,3 +148,7 @@ func (z *ZurgConfig) GetRateLimitSleepSeconds() int {
|
||||
}
|
||||
return z.RateLimitSleepSeconds
|
||||
}
|
||||
|
||||
func (z *ZurgConfig) ShouldDeleteRarFiles() bool {
|
||||
return z.DeleteRarFiles
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user