TM: Fix headers (3)

This commit is contained in:
beerpiss 2024-01-29 22:53:19 +07:00
parent 59d337d6a0
commit 675202234b

View File

@ -262,7 +262,7 @@ class TsukiMangas : HttpSource() {
} }
} }
private val apiHeadersRegex = Regex("""headers\.common(?:\.(?<key>[0-9A-Za-z_]+)|\[['"](?<key2>[0-9A-Za-z-_]+)['"]])\s*=\s*['"](?<value>[a-zA-Z0-9_ :;.,\\/"'?!(){}\[\]@<>=\-+*#$&`|~^%]+)['"]""") private val apiHeadersRegex = Regex("""headers\.common(?:\.(?<key>[0-9A-Za-z_]+)|\[['"](?<key2>[0-9A-Za-z-_]+)['"]])\s*=\s*['"](?<value>[a-zA-Z0-9_ :;.,\\/?!(){}\[\]@<>=\-+*#$&`|~^%]+)['"]""")
private val apiHeaders by lazy { private val apiHeaders by lazy {
val document = client.newCall(GET(baseUrl, headers)).execute().asJsoup() val document = client.newCall(GET(baseUrl, headers)).execute().asJsoup()