Merge pull request #301 from LePips/build-69-quick-fixes

This commit is contained in:
Ethan Pippin 2022-01-14 17:54:31 -07:00 committed by GitHub
commit e95e6db851
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -18,18 +18,19 @@ extension BaseItemDto {
let builder = DeviceProfileBuilder()
// TODO: fix bitrate settings
builder.setMaxBitrate(bitrate: 120_000_000)
let tempOverkillBitrate = 360_000_000
builder.setMaxBitrate(bitrate: tempOverkillBitrate)
let profile = builder.buildProfile()
let playbackInfo = PlaybackInfoDto(userId: SessionManager.main.currentLogin.user.id,
maxStreamingBitrate: 120_000_000,
maxStreamingBitrate: tempOverkillBitrate,
startTimeTicks: self.userData?.playbackPositionTicks ?? 0,
deviceProfile: profile,
autoOpenLiveStream: true)
return MediaInfoAPI.getPostedPlaybackInfo(itemId: self.id!,
userId: SessionManager.main.currentLogin.user.id,
maxStreamingBitrate: 120_000_000,
maxStreamingBitrate: tempOverkillBitrate,
startTimeTicks: self.userData?.playbackPositionTicks ?? 0,
autoOpenLiveStream: true,
playbackInfoDto: playbackInfo)

View File

@ -136,6 +136,7 @@ final class HomeViewModel: ViewModel {
.people,
.chapters,
],
includeItemTypes: ["Movie", "Series"],
enableImageTypes: [.primary, .backdrop, .thumb],
enableUserData: true,
limit: 8)