mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Change NetNewsWire News URL to use the XML version since some sync services don't understand JSON.
This commit is contained in:
@@ -17,7 +17,9 @@ import ArticlesDatabase
|
||||
public final class AccountManager: UnreadCountProvider {
|
||||
|
||||
public static var shared: AccountManager!
|
||||
|
||||
public static let netNewsWireNewsURL = "https://nnw.ranchero.com/feed.xml"
|
||||
private static let jsonNetNewsWireNewsURL = "https://nnw.ranchero.com/feed.json"
|
||||
|
||||
public let defaultAccount: Account
|
||||
|
||||
private let accountsFolder: String
|
||||
@@ -319,6 +321,10 @@ public final class AccountManager: UnreadCountProvider {
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
public func anyAccountHasNetNewsWireNewsSubscription() -> Bool {
|
||||
return anyAccountHasFeedWithURL(Self.netNewsWireNewsURL) || anyAccountHasFeedWithURL(Self.jsonNetNewsWireNewsURL)
|
||||
}
|
||||
|
||||
public func anyAccountHasFeedWithURL(_ urlString: String) -> Bool {
|
||||
for account in activeAccounts {
|
||||
|
||||
Reference in New Issue
Block a user