parent
50cce6c943
commit
d07881f0b6
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'Atsumaru'
|
extName = 'Atsumaru'
|
||||||
extClass = '.Atsumaru'
|
extClass = '.Atsumaru'
|
||||||
extVersionCode = 1
|
extVersionCode = 2
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -30,9 +30,6 @@ class Atsumaru : HttpSource() {
|
||||||
.rateLimit(2)
|
.rateLimit(2)
|
||||||
.build()
|
.build()
|
||||||
|
|
||||||
override fun headersBuilder() = super.headersBuilder()
|
|
||||||
.add("Referer", "$baseUrl/")
|
|
||||||
|
|
||||||
private fun apiHeadersBuilder() = headersBuilder().apply {
|
private fun apiHeadersBuilder() = headersBuilder().apply {
|
||||||
add("Accept", "*/*")
|
add("Accept", "*/*")
|
||||||
add("Host", apiUrl.toHttpUrl().host)
|
add("Host", apiUrl.toHttpUrl().host)
|
||||||
|
|
Loading…
Reference in New Issue