From 9b982a82c150c65a5f72c9b548053553b2c3b0fb Mon Sep 17 00:00:00 2001 From: René 'Necoro' Neumann Date: Sun, 19 Apr 2020 22:00:56 +0200 Subject: Store path as array -- the delimiter is not always '.' --- internal/config/config.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/config/config.go') diff --git a/internal/config/config.go b/internal/config/config.go index e330a48..fa14315 100644 --- a/internal/config/config.go +++ b/internal/config/config.go @@ -41,7 +41,7 @@ type Config struct { type Feed struct { Name string - Target string `yaml:"-"` + Target []string `yaml:"-"` Url string MinFreq int `yaml:"min-frequency"` InclImages *bool `yaml:"include-images"` @@ -65,7 +65,7 @@ func Load(path string) (Config, error) { Feeds: make(Feeds), } - if err := buildFeeds(parsedCfg.Feeds, "", finishedCfg.Feeds); err != nil { + if err := buildFeeds(parsedCfg.Feeds, []string{}, finishedCfg.Feeds); err != nil { return finishedCfg, fmt.Errorf("while parsing: %w", err) } -- cgit v1.2.3-70-g09d2