From 05c00f176007adce400a775082847b5d8f720418 Mon Sep 17 00:00:00 2001 From: anenasa <84259093+anenasa@users.noreply.github.com> Date: Sat, 9 Apr 2022 21:43:29 +0800 Subject: [PATCH] Yimmmh: Change User-Agent (#11400) --- src/zh/yimmh/build.gradle | 2 +- .../yimmh/src/eu/kanade/tachiyomi/extension/zh/yimmh/Yimmh.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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