Remove empty page from TruyenTranhLH (usually donate), close #9595 (#10917)

* Remove academyvn - no longer available

* Remove empty last page from TruyenTranhLH

* Update TruyenTranhLH version code

Co-authored-by: Nam Nguyen <namnguyenicetea@gmail.com>
This commit is contained in:
Nam Nguyễn 2022-02-24 20:56:58 +07:00 committed by GitHub
parent d11445f73b
commit 8ec2475615
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'TruyenTranhLH'
pkgNameSuffix = 'vi.truyentranhlh'
extClass = '.TruyenTranhLH'
extVersionCode = 8
extVersionCode = 9
}
apply from: "$rootDir/common.gradle"

View File

@ -115,9 +115,11 @@ class TruyenTranhLH : ParsedHttpSource() {
// Pages
override fun pageListParse(document: Document): List<Page> {
return document.select("div#chapter-content img").mapIndexed { i, img ->
Page(i, "", img.attr("abs:data-src"))
}
return document.select("div#chapter-content img")
.filterNot { imgEl -> imgEl.attr("abs:data-src").isNullOrEmpty() }
.mapIndexed { i, img ->
Page(i, "", img.attr("abs:data-src"))
}
}
override fun imageUrlParse(document: Document): String = throw UnsupportedOperationException("Not used")