Fix handling feed

This commit is contained in:
Arkadiusz Fal
2022-12-14 17:23:04 +01:00
parent 2812ea0301
commit b55c6f8619
4 changed files with 14 additions and 30 deletions

View File

@@ -26,7 +26,6 @@ final class PipedAPI: Service, ObservableObject, VideosAPI {
func setAccount(_ account: Account) {
self.account = account
wipeResources()
configure()
}
@@ -108,8 +107,10 @@ final class PipedAPI: Service, ObservableObject, VideosAPI {
content.json.arrayValue.compactMap { self.extractUserPlaylist(from: $0) }
}
if account.token.isNil {
if account.token.isNil || account.token!.isEmpty {
updateToken()
} else {
FeedModel.shared.loadResources(force: true)
}
}