parent
df5abd131b
commit
ba7836b0a1
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'SlimeRead'
|
extName = 'SlimeRead'
|
||||||
extClass = '.SlimeRead'
|
extClass = '.SlimeRead'
|
||||||
extVersionCode = 10
|
extVersionCode = 11
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -58,7 +58,7 @@ class SlimeRead : HttpSource() {
|
||||||
val script = initClient.newCall(GET(scriptUrl, headers)).execute().body.string()
|
val script = initClient.newCall(GET(scriptUrl, headers)).execute().body.string()
|
||||||
val apiUrl = FUNCTION_REGEX.find(script)?.value?.let { function ->
|
val apiUrl = FUNCTION_REGEX.find(script)?.value?.let { function ->
|
||||||
BASEURL_VAL_REGEX.find(function)?.groupValues?.get(1)?.let { baseUrlVar ->
|
BASEURL_VAL_REGEX.find(function)?.groupValues?.get(1)?.let { baseUrlVar ->
|
||||||
val regex = """let.*?$baseUrlVar\s*=.*?(?=,)""".toRegex(RegexOption.DOT_MATCHES_ALL)
|
val regex = """let.*?$baseUrlVar\s*=.*?(?=,\s*\w\s*=)""".toRegex(RegexOption.DOT_MATCHES_ALL)
|
||||||
regex.find(function)?.value?.let { varBlock ->
|
regex.find(function)?.value?.let { varBlock ->
|
||||||
try {
|
try {
|
||||||
QuickJs.create().use {
|
QuickJs.create().use {
|
||||||
|
|
Loading…
Reference in New Issue