mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2025-02-03 12:27:32 +01:00
Feedly articles report the crawled and recrawled date for the date published and updated values.
This commit is contained in:
parent
66c7a9532c
commit
fcd6d15b4c
@ -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,
|
||||||
|
@ -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,
|
||||||
|
@ -34,17 +34,17 @@ struct FeedlyEntry: Decodable {
|
|||||||
/// the author’s name
|
/// the author’s 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 feed’s 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 feed’s website.
|
||||||
var origin: FeedlyOrigin?
|
var origin: FeedlyOrigin?
|
||||||
|
@ -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>? {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user