Japscan fix resources URL (#12714)

* Update build.gradle

update graddle version

* Update Japscan.kt

update ressources URL prefix
This commit is contained in:
king07-0 2022-07-25 01:00:15 +02:00 committed by GitHub
parent 5e6acd100c
commit 996513d0e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ ext {
extName = 'Japscan'
pkgNameSuffix = 'fr.japscan'
extClass = '.Japscan'
extVersionCode = 30
extVersionCode = 31
}
dependencies {

View File

@ -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}")