From 7b290dc465c7c85f09203bfed75f74d54f123e0b Mon Sep 17 00:00:00 2001 From: Mitchell Syer Date: Fri, 12 Jan 2024 23:48:33 -0500 Subject: [PATCH] Update User Agent (#821) --- .../tachiyomi/network/interceptor/CloudflareInterceptor.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/src/main/kotlin/eu/kanade/tachiyomi/network/interceptor/CloudflareInterceptor.kt b/server/src/main/kotlin/eu/kanade/tachiyomi/network/interceptor/CloudflareInterceptor.kt index 029a3145..2a7fe91f 100644 --- a/server/src/main/kotlin/eu/kanade/tachiyomi/network/interceptor/CloudflareInterceptor.kt +++ b/server/src/main/kotlin/eu/kanade/tachiyomi/network/interceptor/CloudflareInterceptor.kt @@ -129,9 +129,8 @@ object CFClearance { .build() }*/ - @Suppress("UNREACHABLE_CODE") fun getWebViewUserAgent(): String { - return "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/108.0.0.0 Safari/537.36" + return "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" /*return try { throw PlaywrightException("playwrite is diabled for v0.6.7")