Roumanwu: update mirror URL (#14204)

This commit is contained in:
stevenyomi 2022-11-10 02:47:47 +08:00 committed by GitHub
parent f8d6c1f88d
commit 578b4b85fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Roumanwu'
pkgNameSuffix = 'zh.roumanwu'
extClass = '.Roumanwu'
extVersionCode = 2
extVersionCode = 3
isNsfw = true
}

View File

@ -106,9 +106,6 @@ class Roumanwu : HttpSource(), ConfigurableSource {
summary = MIRROR_PREF_SUMMARY
setDefaultValue(MIRROR_DEFAULT)
setOnPreferenceChangeListener { _, newValue ->
preferences.edit().putString(MIRROR_PREF, newValue as String).commit()
}
}
screen.addPreference(mirrorPref)
}
@ -119,7 +116,7 @@ class Roumanwu : HttpSource(), ConfigurableSource {
private const val MIRROR_PREF_SUMMARY = "使用镜像网址。重启软件生效。"
// 地址: https://rou.pub/dizhi
private val MIRRORS = arrayOf("https://rouman5.com", "https://rouman01.xyz")
private val MIRRORS = arrayOf("https://rouman5.com", "https://rm01.xyz")
private val MIRRORS_DESC = arrayOf("主站", "镜像")
private const val MIRROR_DEFAULT = 1.toString() // use mirror