Koharu: Fix API domain & remove non-relevant domain (#11754)

* Remove hdoujin.net

* Fix API domain
This commit is contained in:
Cuong-Tran 2025-11-23 00:29:55 +07:00 committed by Draff
parent ac21e59f0d
commit 9dbe2bd9ac
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'SchaleNetwork' extName = 'SchaleNetwork'
extClass = '.KoharuFactory' extClass = '.KoharuFactory'
extVersionCode = 16 extVersionCode = 17
isNsfw = true isNsfw = true
} }

View File

@ -74,7 +74,7 @@ class Koharu(
override val id = if (lang == "en") 1484902275639232927 else super.id override val id = if (lang == "en") 1484902275639232927 else super.id
private val apiUrl = baseUrl.replace("://", "://api.") private val apiUrl = API_DOMAIN
private val apiBooksUrl = "$apiUrl/books" private val apiBooksUrl = "$apiUrl/books"
@ -513,13 +513,13 @@ class Koharu(
const val PREFIX_ID_KEY_SEARCH = "id:" const val PREFIX_ID_KEY_SEARCH = "id:"
private const val PREF_MIRROR = "pref_mirror" private const val PREF_MIRROR = "pref_mirror"
private const val MIRROR_PREF_DEFAULT = "schale.network" private const val MIRROR_PREF_DEFAULT = "schale.network"
private const val API_DOMAIN = "https://api.schale.network"
private val mirrors = arrayOf( private val mirrors = arrayOf(
MIRROR_PREF_DEFAULT, MIRROR_PREF_DEFAULT,
"anchira.to", "anchira.to",
"gehenna.jp", "gehenna.jp",
"niyaniya.moe", "niyaniya.moe",
"shupogaki.moe", "shupogaki.moe",
"hdoujin.net",
) )
private const val PREF_IMAGERES = "pref_image_quality" private const val PREF_IMAGERES = "pref_image_quality"
private const val PREF_REM_ADD = "pref_remove_additional" private const val PREF_REM_ADD = "pref_remove_additional"