Feedly articles report the crawled and recrawled date for the date published and updated values.

This commit is contained in:
Kiel Gillard 2019-12-05 18:54:47 +11:00
parent 66c7a9532c
commit fcd6d15b4c
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>? {