NovelleLeggere - fixing duplicated page images (#4944)

NovelleLeggere - fixing duplicated page images
This commit is contained in:
malve90 2020-11-25 00:27:08 +01:00 committed by GitHub
parent 789d727e53
commit 05b78d88cb
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 = 'Novelle Leggere' extName = 'Novelle Leggere'
pkgNameSuffix = 'it.novelleleggere' pkgNameSuffix = 'it.novelleleggere'
extClass = '.NovelleLeggere' extClass = '.NovelleLeggere'
extVersionCode = 1 extVersionCode = 2
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -71,7 +71,7 @@ class NovelleLeggere : ParsedHttpSource() {
// Pages // Pages
override fun pageListParse(document: Document): List<Page> = mutableListOf<Page>().apply { override fun pageListParse(document: Document): List<Page> = mutableListOf<Page>().apply {
document.select("div.post-content p img").forEachIndexed { index, element -> document.select("div.post-content p>img").forEachIndexed { index, element ->
add(Page(index, "", element.attr("abs:src").substringBefore("?"))) add(Page(index, "", element.attr("abs:src").substringBefore("?")))
} }
} }