mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-11-28 16:26:04 +00:00
Add detail to activity log for downloading HTML Metadata — say when the last download was. Also: made the HTML Metadata cache hold for 149 hours (about six days; was 73).
This commit is contained in:
1 parent
ebfc7cf4fe
commit
3ae9156ff3
4 files changed
+24
-3
No files matched your search
@@ -109,7 +109,11 @@ nonisolated private extension HTMLMetadataDownloader {
|
||||
Task { @MainActor in
|
||||
let activityLog = ActivityLog.shared
|
||||
let kind = ActivityKind.downloadHTMLMetadata(urlString: url)
|
||||
activityLog.createActivity(owner: .htmlMetadataDownloader, kind: kind)
|
||||
|
||||
let lastDownloadDate = await HTMLMetadataDatabase.shared.lastDownloadDate(for: url)
|
||||
let detail = lastDownloadDate.map { DateFormatter.logTimestamp.string(from: $0) }
|
||||
|
||||
activityLog.createActivity(owner: .htmlMetadataDownloader, kind: kind, detail: detail)
|
||||
activityLog.didStart(.htmlMetadataDownloader, kind: kind)
|
||||
|
||||
do {
|
||||
|
||||
Reference in new issue
Block a user