diff --git a/src/zh/yimmh/build.gradle b/src/zh/yimmh/build.gradle index d99c3b8ae..d461af204 100644 --- a/src/zh/yimmh/build.gradle +++ b/src/zh/yimmh/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Yimmh' pkgNameSuffix = 'zh.yimmh' extClass = '.Yimmh' - extVersionCode = 4 + extVersionCode = 5 } apply from: "$rootDir/common.gradle" diff --git a/src/zh/yimmh/src/eu/kanade/tachiyomi/extension/zh/yimmh/Yimmh.kt b/src/zh/yimmh/src/eu/kanade/tachiyomi/extension/zh/yimmh/Yimmh.kt index 61a1fd422..a93e2f2f7 100644 --- a/src/zh/yimmh/src/eu/kanade/tachiyomi/extension/zh/yimmh/Yimmh.kt +++ b/src/zh/yimmh/src/eu/kanade/tachiyomi/extension/zh/yimmh/Yimmh.kt @@ -29,7 +29,7 @@ class Yimmh : ParsedHttpSource() { override val supportsLatest: Boolean = true override val baseUrl: String = "https://m.yimmh.com" override fun headersBuilder() = Headers.Builder() - .add("User-Agent", "Mozilla/5.0 (Android 11; Mobile; rv:83.0) Gecko/83.0 Firefox/83.0") + .add("User-Agent", System.getProperty("http.agent")!!) override val client: OkHttpClient = getUnsafeOkHttpClient() // Trusted all certificates