Add videoDetails field mask
This commit is contained in:
parent
d49ac4fa13
commit
6b01fbb008
1 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ suspend fun Innertube.player(body: PlayerBody) = runCatchingNonCancellable {
|
||||||
val response = client.post(player) {
|
val response = client.post(player) {
|
||||||
setBody(body)
|
setBody(body)
|
||||||
body.context.client.userAgent?.let(::userAgent)
|
body.context.client.userAgent?.let(::userAgent)
|
||||||
mask("playabilityStatus.status,playerConfig.audioConfig,streamingData.adaptiveFormats")
|
mask("playabilityStatus.status,playerConfig.audioConfig,streamingData.adaptiveFormats,videoDetails.videoId")
|
||||||
}.body<PlayerResponse>()
|
}.body<PlayerResponse>()
|
||||||
|
|
||||||
if (response.playabilityStatus?.status == "OK") {
|
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>()
|
}.body<PlayerResponse>()
|
||||||
|
|
||||||
if (safePlayerResponse.playabilityStatus?.status != "OK") {
|
if (safePlayerResponse.playabilityStatus?.status != "OK") {
|
||||||
|
|
Loading…
Add table
Reference in a new issue