Ignore "everything" folder
This commit is contained in:
parent
a913b65700
commit
299619703c
|
@ -57,7 +57,9 @@ extension NewsBlurFeedsResponse {
|
||||||
// Parse folders
|
// Parse folders
|
||||||
var folders: [Folder] = []
|
var folders: [Folder] = []
|
||||||
let folderContainer = try container.nestedContainer(keyedBy: NewsBlurGenericCodingKeys.self, forKey: .folders)
|
let folderContainer = try container.nestedContainer(keyedBy: NewsBlurGenericCodingKeys.self, forKey: .folders)
|
||||||
try folderContainer.allKeys.forEach { key in
|
|
||||||
|
// Skip "everything" folder
|
||||||
|
for key in folderContainer.allKeys where key.stringValue != " " {
|
||||||
let subscriptionIds = try folderContainer.decode([Int].self, forKey: key)
|
let subscriptionIds = try folderContainer.decode([Int].self, forKey: key)
|
||||||
let folder = Folder(name: key.stringValue, feedIDs: subscriptionIds)
|
let folder = Folder(name: key.stringValue, feedIDs: subscriptionIds)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue