Last fix for the JapScan Thumbnails (#4517)

* Fix for thumbnails loading

* Increment Version

* Second fix for the JapScan Thumbnails

* Second fix for the JapScan Thumbnails

* Last fix for the JapScan Thumbnails

Co-authored-by: DF-Aces <johanbaker98gmail.com>
This commit is contained in:
LordUTF8 2020-10-08 23:57:07 +02:00 committed by GitHub
parent 61f16d26e9
commit 855aa18430
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' extName = 'Japscan'
pkgNameSuffix = 'fr.japscan' pkgNameSuffix = 'fr.japscan'
extClass = '.Japscan' extClass = '.Japscan'
extVersionCode = 23 extVersionCode = 24
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -189,7 +189,7 @@ class Japscan : ConfigurableSource, ParsedHttpSource() {
element.select("a").first().let { element.select("a").first().let {
manga.setUrlWithoutDomain(it.attr("href")) manga.setUrlWithoutDomain(it.attr("href"))
manga.title = it.text() manga.title = it.text()
manga.thumbnail_url = "$baseUrl/imgs/${it.attr("href").replace(Regex("/$"),".jpg")}".toLowerCase(Locale.ROOT) manga.thumbnail_url = "$baseUrl/imgs/${it.attr("href").replace(Regex("/$"),".jpg").replace("manga","mangas")}".toLowerCase(Locale.ROOT)
} }
return manga return manga
} }