fix gufengmh imageHost match fail (#18114)

This commit is contained in:
tachimanga 2023-09-25 03:10:50 +08:00 committed by GitHub
parent 39f41520e0
commit d426901663
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -186,7 +186,7 @@ abstract class SinMH(
protected open val imageHost: String by lazy {
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" }
}
}

View File

@ -6,7 +6,7 @@ import generator.ThemeSourceGenerator
class SinMHGenerator : ThemeSourceGenerator {
override val themeClass = "SinMH"
override val themePkg = "sinmh"
override val baseVersionCode = 9
override val baseVersionCode = 10
override val sources = listOf(
SingleLang(
name = "Gufeng Manhua",