This commit is contained in:
Aiden Vigue 2021-07-15 23:38:48 -04:00
parent c50b5361eb
commit 11671d9c42
No known key found for this signature in database
GPG Key ID: B9A09843AB079D5B
3 changed files with 5 additions and 3 deletions

View File

@ -56,7 +56,7 @@
} }
}, },
{ {
"package": "JellyfinAPI", "package": "jellyfin-sdk-swift",
"repositoryURL": "https://github.com/jellyfin/jellyfin-sdk-swift", "repositoryURL": "https://github.com/jellyfin/jellyfin-sdk-swift",
"state": { "state": {
"branch": "main", "branch": "main",
@ -65,7 +65,7 @@
} }
}, },
{ {
"package": "KeychainSwift", "package": "keychain-swift",
"repositoryURL": "https://github.com/evgenyneu/keychain-swift", "repositoryURL": "https://github.com/evgenyneu/keychain-swift",
"state": { "state": {
"branch": null, "branch": null,
@ -119,7 +119,7 @@
} }
}, },
{ {
"package": "Introspect", "package": "SwiftUI-Introspect",
"repositoryURL": "https://github.com/siteline/SwiftUI-Introspect", "repositoryURL": "https://github.com/siteline/SwiftUI-Introspect",
"state": { "state": {
"branch": null, "branch": null,

View File

@ -91,6 +91,7 @@ struct LibraryListView: View {
} }
}.padding(.leading, 16) }.padding(.leading, 16)
.padding(.trailing, 16) .padding(.trailing, 16)
.padding(.top, 8)
} }
.navigationTitle("All Media") .navigationTitle("All Media")
.toolbar { .toolbar {

View File

@ -78,6 +78,7 @@ final class LibraryViewModel: ViewModel {
.sink(receiveCompletion: { [weak self] completion in .sink(receiveCompletion: { [weak self] completion in
self?.handleAPIRequestCompletion(completion: completion) self?.handleAPIRequestCompletion(completion: completion)
}, receiveValue: { [weak self] response in }, receiveValue: { [weak self] response in
LogManager.shared.log.debug("Received \(String(response.items?.count ?? 0)) items in library \(self?.parentID ?? "nil")")
guard let self = self else { return } guard let self = self else { return }
let totalPages = ceil(Double(response.totalRecordCount ?? 0) / 100.0) let totalPages = ceil(Double(response.totalRecordCount ?? 0) / 100.0)
self.totalPages = Int(totalPages) self.totalPages = Int(totalPages)