aboutsummaryrefslogtreecommitdiffstats
path: root/crawler
diff options
context:
space:
mode:
Diffstat (limited to 'crawler')
-rw-r--r--crawler/crawler.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/crawler/crawler.go b/crawler/crawler.go
index 4d91241..e884b23 100644
--- a/crawler/crawler.go
+++ b/crawler/crawler.go
@@ -63,17 +63,16 @@ func CrawlFeed(f *feed.Feed, ch chan<- string) {
// a lot of RSS2.0 generated by wordpress and others
// uses <content:encoded>
-
e,ok := i.Extensions["content"]["encoded"]
var encoded = ""
if ok {
encoded = e[0].Value
}
-
if len(encoded) > len(item.Description) {
item.Description = encoded
}
-
+
+ item.PublishDate = i.PublishedParsed.Format(time.RFC3339)
item.FeedId = f.Id
err := item.Create()