working on subdirs by feed
This commit is contained in:
20
rss/item.go
20
rss/item.go
@@ -16,20 +16,22 @@ import (
|
||||
const nsItems = "nsItems"
|
||||
|
||||
type Item struct {
|
||||
Title string
|
||||
Link string
|
||||
Content string
|
||||
TS time.Time
|
||||
Title string
|
||||
Link string
|
||||
Content string
|
||||
TS time.Time
|
||||
Copyright string
|
||||
}
|
||||
|
||||
type Items []*Item
|
||||
|
||||
func newItem(i *gofeed.Item, contentFilter string) (*Item, error) {
|
||||
func newItem(i *gofeed.Item, contentFilter, copyright string) (*Item, error) {
|
||||
item := &Item{
|
||||
Title: i.Title,
|
||||
Link: i.Link,
|
||||
Content: i.Content,
|
||||
TS: latestTSPtr(i.UpdatedParsed, i.PublishedParsed),
|
||||
Title: i.Title,
|
||||
Link: i.Link,
|
||||
Content: i.Content,
|
||||
TS: latestTSPtr(i.UpdatedParsed, i.PublishedParsed),
|
||||
Copyright: copyright,
|
||||
}
|
||||
|
||||
if item.Content == "" {
|
||||
|
||||
Reference in New Issue
Block a user