Create repair queue

This commit is contained in:
Ben Sarmiento
2024-01-28 03:20:58 +01:00
parent f07b65d5da
commit 30dc080dba
3 changed files with 29 additions and 6 deletions

View File

@@ -19,6 +19,7 @@ type ConfigInterface interface {
GetNetworkBufferSize() int
EnableRetainFolderNameExtension() bool
EnableRetainRDTorrentName() bool
ShouldExposeFullPath() bool
ShouldIgnoreRenames() bool
ShouldServeFromRclone() bool
ShouldVerifyDownloadLink() bool
@@ -47,6 +48,7 @@ type ZurgConfig struct {
IgnoreRenames bool `yaml:"ignore_renames" json:"ignore_renames"`
RetainRDTorrentName bool `yaml:"retain_rd_torrent_name" json:"retain_rd_torrent_name"`
RetainFolderNameExtension bool `yaml:"retain_folder_name_extension" json:"retain_folder_name_extension"`
ExposeFullPath bool `yaml:"expose_full_path" json:"expose_full_path"`
CanRepair bool `yaml:"enable_repair" json:"enable_repair"`
DeleteRarFiles bool `yaml:"auto_delete_rar_torrents" json:"auto_delete_rar_torrents"`
@@ -142,6 +144,10 @@ func (z *ZurgConfig) EnableRetainRDTorrentName() bool {
return z.RetainRDTorrentName
}
func (z *ZurgConfig) ShouldExposeFullPath() bool {
return z.ExposeFullPath
}
func (z *ZurgConfig) ShouldIgnoreRenames() bool {
return !z.IgnoreRenames
}