[RU]Senkuro new domains (#9244)
This commit is contained in:
parent
dd595cca72
commit
53f87f108e
@ -2,4 +2,4 @@ plugins {
|
||||
id("lib-multisrc")
|
||||
}
|
||||
|
||||
baseVersionCode = 4
|
||||
baseVersionCode = 5
|
||||
|
@ -431,7 +431,7 @@ abstract class Senkuro(
|
||||
|
||||
companion object {
|
||||
private const val offsetCount = 20
|
||||
private const val API_URL = "https://api.senkuro.com/graphql"
|
||||
private const val API_URL = "https://api.senkuro.me/graphql"
|
||||
private val senkuroExcludeGenres = listOf("hentai", "yaoi", "yuri", "shoujo_ai", "shounen_ai")
|
||||
private val JSON_MEDIA_TYPE = "application/json; charset=utf-8".toMediaTypeOrNull()
|
||||
}
|
||||
|
@ -5,11 +5,11 @@ import android.widget.Toast
|
||||
import eu.kanade.tachiyomi.multisrc.senkuro.Senkuro
|
||||
import keiyoushi.utils.getPreferencesLazy
|
||||
|
||||
class Senkognito : Senkuro("Senkognito", "https://senkognito.com", "ru") {
|
||||
class Senkognito : Senkuro("Senkognito", "https://ne.senkognito.com", "ru") {
|
||||
|
||||
private val preferences: SharedPreferences by getPreferencesLazy()
|
||||
|
||||
private var domain: String? = if (preferences.getBoolean(redirect_PREF, true)) "https://senkognito.com" else "https://senkuro.com"
|
||||
private var domain: String? = if (preferences.getBoolean(redirect_PREF, true)) "https://ne.senkognito.com" else "https://senkuro.me"
|
||||
override val baseUrl: String = domain.toString()
|
||||
override fun setupPreferenceScreen(screen: androidx.preference.PreferenceScreen) {
|
||||
val domainRedirect = androidx.preference.CheckBoxPreference(screen.context).apply {
|
||||
|
@ -3,6 +3,6 @@ package eu.kanade.tachiyomi.extension.ru.senkuro
|
||||
import androidx.preference.PreferenceScreen
|
||||
import eu.kanade.tachiyomi.multisrc.senkuro.Senkuro
|
||||
|
||||
class Senkuro : Senkuro("Senkuro", "https://senkuro.com", "ru") {
|
||||
class Senkuro : Senkuro("Senkuro", "https://senkuro.me", "ru") {
|
||||
override fun setupPreferenceScreen(screen: PreferenceScreen) {}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user