Merge pull request #1403 from kielgillard/feedly-report-crawled

Feedly articles report the crawled and recrawled date…
This commit is contained in:
Brent Simmons 2019-12-05 21:52:43 -08:00 committed by GitHub
commit 66c9d287bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 14 additions and 14 deletions

View File

@ -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,

View File

@ -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,

View File

@ -34,17 +34,17 @@ struct FeedlyEntry: Decodable {
/// the authors 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 feeds website.
var origin: FeedlyOrigin?

View File

@ -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>? {