working on subdirs by feed
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user