parent
df5abd131b
commit
ba7836b0a1
|
@ -1,7 +1,7 @@
|
|||
ext {
|
||||
extName = 'SlimeRead'
|
||||
extClass = '.SlimeRead'
|
||||
extVersionCode = 10
|
||||
extVersionCode = 11
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ class SlimeRead : HttpSource() {
|
|||
val script = initClient.newCall(GET(scriptUrl, headers)).execute().body.string()
|
||||
val apiUrl = FUNCTION_REGEX.find(script)?.value?.let { function ->
|
||||
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 ->
|
||||
try {
|
||||
QuickJs.create().use {
|
||||
|
|
Loading…
Reference in New Issue