fix build
This commit is contained in:
parent
995240cb32
commit
ebf18fcd96
|
@ -46,14 +46,14 @@ abstract class EHentai(
|
||||||
}
|
}
|
||||||
|
|
||||||
private val webViewCookieManager: CookieManager by lazy { CookieManager.getInstance() }
|
private val webViewCookieManager: CookieManager by lazy { CookieManager.getInstance() }
|
||||||
private val memberId: String = getMemberIdPref()
|
private val memberId: String by lazy { getMemberIdPref() }
|
||||||
private val passHash: String = getPassHashPref()
|
private val passHash: String by lazy { getPassHashPref() }
|
||||||
|
|
||||||
override val baseUrl: String
|
override val baseUrl: String
|
||||||
get() = if (memberId.isNotEmpty() && passHash.isNotEmpty()) {
|
get() = when {
|
||||||
"https://exhentai.org"
|
System.getenv("CI") == "true" -> "https://e-hentai.org"
|
||||||
} else {
|
memberId.isNotEmpty() && passHash.isNotEmpty() -> "https://exhentai.org"
|
||||||
"https://e-hentai.org"
|
else -> "https://e-hentai.org"
|
||||||
}
|
}
|
||||||
|
|
||||||
override val supportsLatest = true
|
override val supportsLatest = true
|
||||||
|
@ -82,7 +82,7 @@ abstract class EHentai(
|
||||||
val manga = mangaElements[i].let {
|
val manga = mangaElements[i].let {
|
||||||
SManga.create().apply {
|
SManga.create().apply {
|
||||||
// Get title
|
// Get title
|
||||||
it.select("a")?.first()?.apply {
|
it.selectFirst("a")?.apply {
|
||||||
title = this.select(".glink").text()
|
title = this.select(".glink").text()
|
||||||
url = ExGalleryMetadata.normalizeUrl(attr("href"))
|
url = ExGalleryMetadata.normalizeUrl(attr("href"))
|
||||||
if (i == mangaElements.lastIndex) {
|
if (i == mangaElements.lastIndex) {
|
||||||
|
|
Loading…
Reference in New Issue