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

This commit is contained in:
aiden 3 2022-01-14 14:18:29 -05:00 committed by GitHub
commit 78938bfcd1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 5 deletions

View File

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

View File

@ -296,7 +296,7 @@ public extension BaseItemDto {
if let premierDate = premiereDate {
return premierDate > Date()
} else {
return true
return false
}
}

View File

@ -39,7 +39,11 @@ struct ParallaxHeaderScrollView<Header: View, StaticOverlayView: View, Content:
.offset(y: yOffset)
}
.frame(height: headerHeight)
content()
HStack {
content()
Spacer(minLength: 0)
}
}
}
}