HentaiEra: fix 302 redirect and headers (#3403)

missed in the pr review, oops
This commit is contained in:
AwkwardPeak7 2024-06-04 11:06:11 +05:00 committed by Draff
parent 00ff44e696
commit 9b1633f28e
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 4 additions and 3 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.HentaiEraFactory' extClass = '.HentaiEraFactory'
themePkg = 'galleryadults' themePkg = 'galleryadults'
baseUrl = 'https://hentaiera.com' baseUrl = 'https://hentaiera.com'
overrideVersionCode = 0 overrideVersionCode = 1
isNsfw = true isNsfw = true
} }

View File

@ -38,7 +38,7 @@ class HentaiEra(
override fun popularMangaRequest(page: Int): Request { override fun popularMangaRequest(page: Int): Request {
// Only for query string or multiple tags // Only for query string or multiple tags
val url = "$baseUrl/search".toHttpUrl().newBuilder().apply { val url = "$baseUrl/search/".toHttpUrl().newBuilder().apply {
addQueryParameter("pp", "1") addQueryParameter("pp", "1")
getLanguageURIs().forEach { pair -> getLanguageURIs().forEach { pair ->
@ -50,7 +50,8 @@ class HentaiEra(
addPageUri(page) addPageUri(page)
} }
return GET(url.build())
return GET(url.build(), headers)
} }
/* Details */ /* Details */