Add reading torrent list from file cache, add ffprobe check, bring back proxy in config
This commit is contained in:
@@ -34,6 +34,7 @@ type ConfigInterface interface {
|
||||
GetDownloadsEveryMins() int
|
||||
GetDumpTorrentsEveryMins() int
|
||||
GetPlayableExtensions() []string
|
||||
GetProxy() string
|
||||
}
|
||||
|
||||
type ZurgConfig struct {
|
||||
@@ -54,6 +55,7 @@ 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"`
|
||||
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"`
|
||||
@@ -205,3 +207,7 @@ func (z *ZurgConfig) GetPlayableExtensions() []string {
|
||||
}
|
||||
return z.PlayableExtensions
|
||||
}
|
||||
|
||||
func (z *ZurgConfig) GetProxy() string {
|
||||
return z.Proxy
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user