HentaiEra: fix 302 redirect and headers (#3403)
missed in the pr review, oops
This commit is contained in:
parent
00ff44e696
commit
9b1633f28e
|
@ -3,7 +3,7 @@ ext {
|
|||
extClass = '.HentaiEraFactory'
|
||||
themePkg = 'galleryadults'
|
||||
baseUrl = 'https://hentaiera.com'
|
||||
overrideVersionCode = 0
|
||||
overrideVersionCode = 1
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ class HentaiEra(
|
|||
|
||||
override fun popularMangaRequest(page: Int): Request {
|
||||
// Only for query string or multiple tags
|
||||
val url = "$baseUrl/search".toHttpUrl().newBuilder().apply {
|
||||
val url = "$baseUrl/search/".toHttpUrl().newBuilder().apply {
|
||||
addQueryParameter("pp", "1")
|
||||
|
||||
getLanguageURIs().forEach { pair ->
|
||||
|
@ -50,7 +50,8 @@ class HentaiEra(
|
|||
|
||||
addPageUri(page)
|
||||
}
|
||||
return GET(url.build())
|
||||
|
||||
return GET(url.build(), headers)
|
||||
}
|
||||
|
||||
/* Details */
|
||||
|
|
Loading…
Reference in New Issue