subsyt/internal/config/paths.go
Viktor Varland 09134c46c4
Some checks are pending
build / build (push) Waiting to run
refactor: split logic into distinct parts
2025-10-01 21:21:59 +02:00

21 lines
372 B
Go

package config
import "path/filepath"
type Paths struct {
DownloadRoot string
ChannelsDir string
EpisodesDir string
MediaDir string
}
func (c Config) Paths() Paths {
root := c.Download_dir
return Paths{
DownloadRoot: root,
ChannelsDir: filepath.Join(root, "channels"),
EpisodesDir: filepath.Join(root, "episodes"),
MediaDir: c.Media_dir,
}
}