From 996513d0e31b16aa5887e8b3f3bace0e07535fef Mon Sep 17 00:00:00 2001 From: king07-0 <71879489+king07-0@users.noreply.github.com> Date: Mon, 25 Jul 2022 01:00:15 +0200 Subject: [PATCH] Japscan fix resources URL (#12714) * Update build.gradle update graddle version * Update Japscan.kt update ressources URL prefix --- src/fr/japscan/build.gradle | 2 +- .../src/eu/kanade/tachiyomi/extension/fr/japscan/Japscan.kt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/fr/japscan/build.gradle b/src/fr/japscan/build.gradle index 88dd495ee..05e059312 100644 --- a/src/fr/japscan/build.gradle +++ b/src/fr/japscan/build.gradle @@ -6,7 +6,7 @@ ext { extName = 'Japscan' pkgNameSuffix = 'fr.japscan' extClass = '.Japscan' - extVersionCode = 30 + extVersionCode = 31 } dependencies { diff --git a/src/fr/japscan/src/eu/kanade/tachiyomi/extension/fr/japscan/Japscan.kt b/src/fr/japscan/src/eu/kanade/tachiyomi/extension/fr/japscan/Japscan.kt index fbde93222..f27d9720c 100644 --- a/src/fr/japscan/src/eu/kanade/tachiyomi/extension/fr/japscan/Japscan.kt +++ b/src/fr/japscan/src/eu/kanade/tachiyomi/extension/fr/japscan/Japscan.kt @@ -379,7 +379,7 @@ class Japscan : ConfigurableSource, ParsedHttpSource() { view: WebView, request: WebResourceRequest ): WebResourceResponse? { - if (request.url.toString().startsWith("https://c.japscan.ws/") && !checkNew.contains(request.url.toString())) { + if (request.url.toString().startsWith("https://cdn.statically.io/img/c.japscan.ws/") && !checkNew.contains(request.url.toString())) { checkNew.add(request.url.toString()) pages.add(Page(pages.size, "", request.url.toString())) Log.d("japscan", "intercepted ${request.url}")