parent
06da29ae8c
commit
047a04723f
@ -6,7 +6,7 @@ ext {
|
|||||||
extName = 'Reaper Scans'
|
extName = 'Reaper Scans'
|
||||||
pkgNameSuffix = 'en.reaperscans'
|
pkgNameSuffix = 'en.reaperscans'
|
||||||
extClass = '.ReaperScans'
|
extClass = '.ReaperScans'
|
||||||
extVersionCode = 44
|
extVersionCode = 45
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
@ -18,6 +18,7 @@ import kotlinx.serialization.json.add
|
|||||||
import kotlinx.serialization.json.addJsonObject
|
import kotlinx.serialization.json.addJsonObject
|
||||||
import kotlinx.serialization.json.buildJsonObject
|
import kotlinx.serialization.json.buildJsonObject
|
||||||
import kotlinx.serialization.json.contentOrNull
|
import kotlinx.serialization.json.contentOrNull
|
||||||
|
import kotlinx.serialization.json.jsonObject
|
||||||
import kotlinx.serialization.json.jsonPrimitive
|
import kotlinx.serialization.json.jsonPrimitive
|
||||||
import kotlinx.serialization.json.put
|
import kotlinx.serialization.json.put
|
||||||
import kotlinx.serialization.json.putJsonArray
|
import kotlinx.serialization.json.putJsonArray
|
||||||
@ -289,6 +290,9 @@ class ReaperScans : ParsedHttpSource() {
|
|||||||
val routeName = livewareData.fingerprint["name"]?.jsonPrimitive?.contentOrNull
|
val routeName = livewareData.fingerprint["name"]?.jsonPrimitive?.contentOrNull
|
||||||
?: error("Couldn't find routeName")
|
?: error("Couldn't find routeName")
|
||||||
|
|
||||||
|
val tunstileName = livewareData.serverMemo["data"]?.jsonObject?.keys?.firstOrNull { it != "chapter" }
|
||||||
|
?: error("Couldn't fine Tunstile Name")
|
||||||
|
|
||||||
// Javascript: (Math.random() + 1).toString(36).substring(8)
|
// Javascript: (Math.random() + 1).toString(36).substring(8)
|
||||||
val generateId = { "1.${Random.nextLong().toString(36)}".substring(10) } // Not exactly the same, but results in a 3-5 character string
|
val generateId = { "1.${Random.nextLong().toString(36)}".substring(10) } // Not exactly the same, but results in a 3-5 character string
|
||||||
val payload = buildJsonObject {
|
val payload = buildJsonObject {
|
||||||
@ -301,7 +305,7 @@ class ReaperScans : ParsedHttpSource() {
|
|||||||
put("id", generateId())
|
put("id", generateId())
|
||||||
put("method", "${"$"}set")
|
put("method", "${"$"}set")
|
||||||
putJsonArray("params") {
|
putJsonArray("params") {
|
||||||
add("turnstile")
|
add(tunstileName)
|
||||||
add(randomString())
|
add(randomString())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user