TM: Fix headers (3)

This commit is contained in:
beerpiss 2024-01-29 22:53:19 +07:00 committed by Draff
parent 512fb0053a
commit 52c1b103cb
1 changed files with 1 additions and 1 deletions

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 {
val document = client.newCall(GET(baseUrl, headers)).execute().asJsoup()