fix gufengmh imageHost match fail (#18114)
This commit is contained in:
parent
39f41520e0
commit
d426901663
|
@ -186,7 +186,7 @@ abstract class SinMH(
|
||||||
|
|
||||||
protected open val imageHost: String by lazy {
|
protected open val imageHost: String by lazy {
|
||||||
client.newCall(GET("$baseUrl/js/config.js", headers)).execute().let {
|
client.newCall(GET("$baseUrl/js/config.js", headers)).execute().let {
|
||||||
Regex("""resHost:.+?"domain":\["(.+?)"""").find(it.body.string())!!
|
Regex("""resHost:.+?"?domain"?:\["(.+?)"""").find(it.body.string())!!
|
||||||
.groupValues[1].substringAfter(':').run { "https:$this" }
|
.groupValues[1].substringAfter(':').run { "https:$this" }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,7 +6,7 @@ import generator.ThemeSourceGenerator
|
||||||
class SinMHGenerator : ThemeSourceGenerator {
|
class SinMHGenerator : ThemeSourceGenerator {
|
||||||
override val themeClass = "SinMH"
|
override val themeClass = "SinMH"
|
||||||
override val themePkg = "sinmh"
|
override val themePkg = "sinmh"
|
||||||
override val baseVersionCode = 9
|
override val baseVersionCode = 10
|
||||||
override val sources = listOf(
|
override val sources = listOf(
|
||||||
SingleLang(
|
SingleLang(
|
||||||
name = "Gufeng Manhua",
|
name = "Gufeng Manhua",
|
||||||
|
|
Loading…
Reference in New Issue