Add a precacher to significantly improve importing to arrs/plex

This commit is contained in:
Mukhtar Akere
2025-03-15 23:12:37 +01:00
parent e2ff3b26de
commit b91aa1db38
4 changed files with 57 additions and 0 deletions

View File

@@ -19,6 +19,7 @@ type QBit struct {
logger zerolog.Logger
Tags []string
RefreshInterval int
SkipPreCache bool
}
func New() *QBit {
@@ -35,5 +36,6 @@ func New() *QBit {
Storage: NewTorrentStorage(filepath.Join(_cfg.Path, "torrents.json")),
logger: logger.NewLogger("qbit", _cfg.LogLevel, os.Stdout),
RefreshInterval: refreshInterval,
SkipPreCache: cfg.SkipPreCache,
}
}