Atsumaru: Fix image loading (#5971)

Fix images loading
This commit is contained in:
Chopper 2024-11-11 05:36:46 -03:00 committed by Draff
parent 50cce6c943
commit d07881f0b6
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 1 additions and 4 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'Atsumaru' extName = 'Atsumaru'
extClass = '.Atsumaru' extClass = '.Atsumaru'
extVersionCode = 1 extVersionCode = 2
isNsfw = true isNsfw = true
} }

View File

@ -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)