changes
This commit is contained in:
parent
c50b5361eb
commit
11671d9c42
|
@ -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,
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue