Add videoDetails field mask

This commit is contained in:
vfsfitvnm 2022-10-09 16:48:31 +02:00
parent d49ac4fa13
commit 6b01fbb008

View file

@ -18,7 +18,7 @@ suspend fun Innertube.player(body: PlayerBody) = runCatchingNonCancellable {
val response = client.post(player) {
setBody(body)
body.context.client.userAgent?.let(::userAgent)
mask("playabilityStatus.status,playerConfig.audioConfig,streamingData.adaptiveFormats")
mask("playabilityStatus.status,playerConfig.audioConfig,streamingData.adaptiveFormats,videoDetails.videoId")
}.body<PlayerResponse>()
if (response.playabilityStatus?.status == "OK") {
@ -45,7 +45,7 @@ suspend fun Innertube.player(body: PlayerBody) = runCatchingNonCancellable {
),
)
)
mask("playabilityStatus.status,playerConfig.audioConfig,streamingData.adaptiveFormats")
mask("playabilityStatus.status,playerConfig.audioConfig,streamingData.adaptiveFormats,videoDetails.videoId")
}.body<PlayerResponse>()
if (safePlayerResponse.playabilityStatus?.status != "OK") {