Merge pull request #1403 from kielgillard/feedly-report-crawled
Feedly articles report the crawled and recrawled date…
This commit is contained in:
commit
66c9d287bb
|
@ -45,8 +45,8 @@ final class TestGetPagedStreamContentsService: FeedlyGetStreamContentsService {
|
|||
content: content,
|
||||
summary: content,
|
||||
author: nil,
|
||||
published: Date(),
|
||||
updated: nil,
|
||||
crawled: Date(),
|
||||
recrawled: nil,
|
||||
origin: origin,
|
||||
canonical: nil,
|
||||
alternate: nil,
|
||||
|
|
|
@ -35,8 +35,8 @@ final class TestGetStreamContentsService: FeedlyGetStreamContentsService {
|
|||
content: content,
|
||||
summary: content,
|
||||
author: nil,
|
||||
published: Date(),
|
||||
updated: nil,
|
||||
crawled: Date(),
|
||||
recrawled: nil,
|
||||
origin: origin,
|
||||
canonical: nil,
|
||||
alternate: nil,
|
||||
|
|
|
@ -34,17 +34,17 @@ struct FeedlyEntry: Decodable {
|
|||
/// the author’s name
|
||||
var author: String?
|
||||
|
||||
// /// the immutable timestamp, in ms, when this article was processed by the feedly Cloud servers.
|
||||
// var crawled: Date
|
||||
//
|
||||
// // the timestamp, in ms, when this article was re-processed and updated by the feedly Cloud servers.
|
||||
// var recrawled: Date?
|
||||
//
|
||||
/// the immutable timestamp, in ms, when this article was processed by the feedly Cloud servers.
|
||||
var crawled: Date
|
||||
|
||||
/// the timestamp, in ms, when this article was re-processed and updated by the feedly Cloud servers.
|
||||
var recrawled: Date?
|
||||
|
||||
/// the timestamp, in ms, when this article was published, as reported by the RSS feed (often inaccurate).
|
||||
var published: Date
|
||||
// var published: Date
|
||||
|
||||
/// the timestamp, in ms, when this article was updated, as reported by the RSS feed
|
||||
var updated: Date?
|
||||
// var updated: Date?
|
||||
|
||||
/// the feed from which this article was crawled. If present, “streamId” will contain the feed id, “title” will contain the feed title, and “htmlUrl” will contain the feed’s website.
|
||||
var origin: FeedlyOrigin?
|
||||
|
|
|
@ -53,11 +53,11 @@ struct FeedlyEntryParser {
|
|||
}
|
||||
|
||||
var datePublished: Date {
|
||||
return entry.published
|
||||
return entry.crawled
|
||||
}
|
||||
|
||||
var dateModified: Date? {
|
||||
return entry.updated
|
||||
return entry.recrawled
|
||||
}
|
||||
|
||||
var authors: Set<ParsedAuthor>? {
|
||||
|
|
Loading…
Reference in New Issue