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, content: content,
summary: content, summary: content,
author: nil, author: nil,
published: Date(), crawled: Date(),
updated: nil, recrawled: nil,
origin: origin, origin: origin,
canonical: nil, canonical: nil,
alternate: nil, alternate: nil,

View File

@ -35,8 +35,8 @@ final class TestGetStreamContentsService: FeedlyGetStreamContentsService {
content: content, content: content,
summary: content, summary: content,
author: nil, author: nil,
published: Date(), crawled: Date(),
updated: nil, recrawled: nil,
origin: origin, origin: origin,
canonical: nil, canonical: nil,
alternate: nil, alternate: nil,

View File

@ -34,17 +34,17 @@ struct FeedlyEntry: Decodable {
/// the authors name /// the authors name
var author: String? var author: String?
// /// the immutable timestamp, in ms, when this article was processed by the feedly Cloud servers. /// the immutable timestamp, in ms, when this article was processed by the feedly Cloud servers.
// var crawled: Date var crawled: Date
//
// // the timestamp, in ms, when this article was re-processed and updated by the feedly Cloud servers. /// the timestamp, in ms, when this article was re-processed and updated by the feedly Cloud servers.
// var recrawled: Date? var recrawled: Date?
//
/// the timestamp, in ms, when this article was published, as reported by the RSS feed (often inaccurate). /// 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 /// 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. /// 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? var origin: FeedlyOrigin?

View File

@ -53,11 +53,11 @@ struct FeedlyEntryParser {
} }
var datePublished: Date { var datePublished: Date {
return entry.published return entry.crawled
} }
var dateModified: Date? { var dateModified: Date? {
return entry.updated return entry.recrawled
} }
var authors: Set<ParsedAuthor>? { var authors: Set<ParsedAuthor>? {