2017-09-19 07:00:35 +02:00
|
|
|
//
|
|
|
|
// ParsedArticle+Database.swift
|
|
|
|
// Database
|
|
|
|
//
|
|
|
|
// Created by Brent Simmons on 9/18/17.
|
|
|
|
// Copyright © 2017 Ranchero Software. All rights reserved.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
import RSParser
|
|
|
|
import Data
|
|
|
|
|
|
|
|
extension ParsedItem {
|
|
|
|
|
|
|
|
var articleID: String {
|
2018-02-14 22:14:25 +01:00
|
|
|
if let s = syncServiceID {
|
|
|
|
return s
|
2017-09-19 07:00:35 +02:00
|
|
|
}
|
2018-02-14 22:14:25 +01:00
|
|
|
// Must be same calculation as for Article.
|
|
|
|
return Article.calculatedArticleID(feedID: feedURL, uniqueID: uniqueID)
|
2017-09-19 07:00:35 +02:00
|
|
|
}
|
|
|
|
}
|