Fix japscan intercept url (#7191)

This commit is contained in:
FrozyPenguin 2021-05-24 13:03:05 +02:00 committed by GitHub
parent f42d8cd443
commit ec3ed6206c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Japscan'
pkgNameSuffix = 'fr.japscan'
extClass = '.Japscan'
extVersionCode = 27
extVersionCode = 28
libVersion = '1.2'
}

View File

@ -389,7 +389,7 @@ class Japscan : ConfigurableSource, ParsedHttpSource() {
view: WebView,
request: WebResourceRequest
): WebResourceResponse? {
if (request.url.toString().startsWith("https://cdn.statically.io/img/c.japscan.se/") && !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}")