1
0
mirror of https://github.com/TeamNewPipe/NewPipe synced 2025-10-30 14:52:59 +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

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)