diff --git a/src/vi/truyentranhlh/build.gradle b/src/vi/truyentranhlh/build.gradle index 63253e2fa..252e4c958 100644 --- a/src/vi/truyentranhlh/build.gradle +++ b/src/vi/truyentranhlh/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'TruyenTranhLH' pkgNameSuffix = 'vi.truyentranhlh' extClass = '.TruyenTranhLH' - extVersionCode = 8 + extVersionCode = 9 } apply from: "$rootDir/common.gradle" diff --git a/src/vi/truyentranhlh/src/eu/kanade/tachiyomi/extension/vi/truyentranhlh/TruyenTranhLH.kt b/src/vi/truyentranhlh/src/eu/kanade/tachiyomi/extension/vi/truyentranhlh/TruyenTranhLH.kt index 0da71c8b3..084c7a143 100644 --- a/src/vi/truyentranhlh/src/eu/kanade/tachiyomi/extension/vi/truyentranhlh/TruyenTranhLH.kt +++ b/src/vi/truyentranhlh/src/eu/kanade/tachiyomi/extension/vi/truyentranhlh/TruyenTranhLH.kt @@ -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")