Fix japscan intercept url (#7191)
This commit is contained in:
parent
f42d8cd443
commit
ec3ed6206c
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'Japscan'
|
extName = 'Japscan'
|
||||||
pkgNameSuffix = 'fr.japscan'
|
pkgNameSuffix = 'fr.japscan'
|
||||||
extClass = '.Japscan'
|
extClass = '.Japscan'
|
||||||
extVersionCode = 27
|
extVersionCode = 28
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -389,7 +389,7 @@ class Japscan : ConfigurableSource, ParsedHttpSource() {
|
||||||
view: WebView,
|
view: WebView,
|
||||||
request: WebResourceRequest
|
request: WebResourceRequest
|
||||||
): WebResourceResponse? {
|
): 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())
|
checkNew.add(request.url.toString())
|
||||||
pages.add(Page(pages.size, "", request.url.toString()))
|
pages.add(Page(pages.size, "", request.url.toString()))
|
||||||
Log.d("japscan", "intercepted ${request.url}")
|
Log.d("japscan", "intercepted ${request.url}")
|
||||||
|
|
Loading…
Reference in New Issue