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'
|
extClass = '.HentaiEraFactory'
|
||||||
themePkg = 'galleryadults'
|
themePkg = 'galleryadults'
|
||||||
baseUrl = 'https://hentaiera.com'
|
baseUrl = 'https://hentaiera.com'
|
||||||
overrideVersionCode = 0
|
overrideVersionCode = 1
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
Loading…
Reference in New Issue