feat: add automatic cleanup options for completed torrents and missing files (#1243)

This commit is contained in:
Locon213 authored and GitHub committed 2026-01-22 09:32:14 +08:00
1 parent bad7f1d06c
commit 8d33e1a5b3
23 files changed
+152 -6

No files matched your search

+4
View File
@@ -185,6 +185,10 @@ type DownloaderStoreConfig struct {
Proxy *DownloaderProxyConfig `json:"proxy"`
Webhook *WebhookConfig `json:"webhook"` // Webhook is the webhook configuration
Archive *ArchiveConfig `json:"archive"` // Archive is the archive extraction configuration
// New fields added for auto-management
AutoDeleteTorrents bool `json:"autoDeleteTorrents"` // AutoDeleteTorrents enables automatic deletion of .torrent files after download
AutoCleanMissingFiles bool `json:"autoCleanMissingFiles"` // AutoCleanMissingFiles enables automatic cleanup of tasks with missing files
}
func (cfg *DownloaderStoreConfig) Init() *DownloaderStoreConfig {