fix build

This commit is contained in:
AwkwardPeak7 2024-11-04 18:00:27 +05:00 committed by Draff
parent 995240cb32
commit ebf18fcd96
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
1 changed files with 7 additions and 7 deletions

View File

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