Filter out any recommended feeds that might be json

This commit is contained in:
Maurice Parker 2020-10-25 18:06:51 -05:00
parent 7e32c9f551
commit 63326e1f92

View File

@ -315,7 +315,7 @@ final class ReaderAPIAccountDelegate: AccountDelegate {
switch result {
case .success(let feedSpecifiers):
let feedSpecifiers = feedSpecifiers.filter { !$0.urlString.hasSuffix(".json") }
let feedSpecifiers = feedSpecifiers.filter { !$0.urlString.contains("json") }
guard let bestFeedSpecifier = FeedSpecifier.bestFeed(in: feedSpecifiers) else {
completion(.failure(AccountError.createErrorNotFound))
return