MangaRaw: base URL for CI (#15998)

This commit is contained in:
stevenyomi 2023-04-09 21:59:34 +08:00 committed by GitHub
parent 83f52130db
commit 750beeaf81
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 2 deletions

View File

@ -22,8 +22,14 @@ class MangaRaw : MangaRawTheme("MangaRaw", ""), ConfigurableSource {
override val versionId = 2
override val id = 4572869149806246133
private val isCi = System.getenv("CI") == "true"
override val baseUrl get() = when {
isCi -> MIRRORS.joinToString("#, ") { "https://$it" }
else -> _baseUrl
}
override val supportsLatest = true
override val baseUrl: String
private val _baseUrl: String
private val selectors: Selectors
private val needUrlSanitize: Boolean
private val isPagesShuffled: Boolean
@ -38,7 +44,7 @@ class MangaRaw : MangaRawTheme("MangaRaw", ""), ConfigurableSource {
preferences.edit().putString(MIRROR_PREF, mirrorIndex.toString()).apply()
}
baseUrl = "https://" + mirrors[mirrorIndex]
_baseUrl = "https://" + mirrors[mirrorIndex]
selectors = getSelectors(mirrorIndex)
needUrlSanitize = needUrlSanitize(mirrorIndex)
isPagesShuffled = isPagesShuffled(mirrorIndex)