1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-04-20 17:53:15 +00:00

Merge pull request #12150 from FineFindus/fix/potoken-index

[YouTube] Access first element if array size is one
This commit is contained in:
Stypox 2025-04-08 23:06:04 +02:00 committed by GitHub
commit 5840d3a437
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,7 +17,7 @@ fun parseChallengeData(rawChallengeData: String): String {
val descrambled = descramble(scrambled.getString(1))
JsonParser.array().from(descrambled)
} else {
scrambled.getArray(1)
scrambled.getArray(0)
}
val messageId = challengeData.getString(0)