working on subdirs by feed

This commit is contained in:
bel
2019-09-02 09:08:53 -06:00
parent 2518c3f263
commit db79a43e95
9 changed files with 101 additions and 16 deletions

View File

@@ -21,6 +21,7 @@ type Feed struct {
TitleFilter string
ContentFilter string
Tags []string
Copyright string
}
func SubmitFeed(f *Feed) error {
@@ -72,7 +73,7 @@ func (f *Feed) Pull() error {
itemTSs := []*time.Time{}
for _, i := range gofeed.Items {
item, err := newItem(i, f.ContentFilter)
item, err := newItem(i, f.ContentFilter, f.Copyright)
if err != nil {
log.Println("[Pull]", err)
continue