aboutsummaryrefslogtreecommitdiff
path: root/pkg/config/yaml.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-25 17:37:42 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-04-25 17:37:42 +0200
commit8c134b0ece0da2d774e2bad4df35803d3c30f500 (patch)
tree1f60b14b0f01fd95401b9fe4aca4ca257602ef1c /pkg/config/yaml.go
parent96725ec63e12e76d6d93345d35d42b141180f4e1 (diff)
downloadfeed2imap-go-8c134b0ece0da2d774e2bad4df35803d3c30f500.tar.gz
feed2imap-go-8c134b0ece0da2d774e2bad4df35803d3c30f500.tar.bz2
feed2imap-go-8c134b0ece0da2d774e2bad4df35803d3c30f500.zip
Push global feed configuration to feeds
Diffstat (limited to 'pkg/config/yaml.go')
-rw-r--r--pkg/config/yaml.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkg/config/yaml.go b/pkg/config/yaml.go
index 53d4d98..84f4af6 100644
--- a/pkg/config/yaml.go
+++ b/pkg/config/yaml.go
@@ -98,6 +98,7 @@ func buildFeeds(cfg []configGroupFeed, target []string, feeds Feeds) error {
return fmt.Errorf("Entry with Target %s is both a Feed and a group", target)
case f.isFeed():
+ feedCopy := f.Feed
name := f.Feed.Name
if name == "" {
return fmt.Errorf("Unnamed feed")
@@ -106,8 +107,8 @@ func buildFeeds(cfg []configGroupFeed, target []string, feeds Feeds) error {
if _, ok := feeds[name]; ok {
return fmt.Errorf("Duplicate Feed Name '%s'", name)
}
- f.Feed.Target = target
- feeds[name] = f.Feed
+ feedCopy.Target = target
+ feeds[name] = &feedCopy
case f.isGroup():
if err := buildFeeds(f.Group.Feeds, target, feeds); err != nil {
' href='/feed2imap-go.git/tag/?h=v0.2.0'>v0.2.0René 'Necoro' Neumann2-2/+6 2020-05-10Fix building cacheRené 'Necoro' Neumann1-1/+3 2020-05-10Update READMERené 'Necoro' Neumann1-5/+44 2020-05-10Ignore 'dist' folder and build productsRené 'Necoro' Neumann1-0/+2 2020-05-08Print item hashes in debug modeRené 'Necoro' Neumann1-1/+7 2020-05-07Improve html renderingRené 'Necoro' Neumann2-53/+32 2020-05-07Do not assume items to be new when their published date is newer than the las...René 'Necoro' Neumann2-7/+1 2020-05-07Updating some depsRené 'Necoro' Neumann2-2/+7 2020-05-07Better detection if a text starts with html or notRené 'Necoro' Neumann2-4/+13 2020-05-07go fmtRené 'Necoro' Neumann1-3/+2 2020-05-07Add header X-Feed2Imap-GUIDRené 'Necoro' Neumann3-1/+7 2020-05-07update changelogRené 'Necoro' Neumann1-0/+1 2020-05-07FixRené 'Necoro' Neumann1-1/+1 2020-05-07Unified publishedDate and updatedDate into one (just as the old feed2imap...)René 'Necoro' Neumann5-21/+32 2020-05-06Print version during startupRené 'Necoro' Neumann1-1/+1 2020-05-06Improve templateRené 'Necoro' Neumann3-20/+28 2020-05-05Fix pipelineRené 'Necoro' Neumann1-2/+5 2020-05-05Make changelog a part of the release pipeline (untested)René 'Necoro' Neumann2-0/+12