diff --git a/src/vi/nettruyen/build.gradle b/src/vi/nettruyen/build.gradle index 916d19468..7c49e8cb2 100644 --- a/src/vi/nettruyen/build.gradle +++ b/src/vi/nettruyen/build.gradle @@ -5,7 +5,7 @@ ext { appName = 'Tachiyomi: NetTruyen' pkgNameSuffix = 'vi.nettruyen' extClass = '.NetTruyen' - extVersionCode = 3 + extVersionCode = 4 libVersion = '1.2' } diff --git a/src/vi/nettruyen/src/eu/kanade/tachiyomi/extension/vi/nettruyen/NetTruyen.kt b/src/vi/nettruyen/src/eu/kanade/tachiyomi/extension/vi/nettruyen/NetTruyen.kt index 044517024..9af39bcad 100644 --- a/src/vi/nettruyen/src/eu/kanade/tachiyomi/extension/vi/nettruyen/NetTruyen.kt +++ b/src/vi/nettruyen/src/eu/kanade/tachiyomi/extension/vi/nettruyen/NetTruyen.kt @@ -156,7 +156,8 @@ class NetTruyen : ParsedHttpSource() { override fun pageListParse(document: Document): List { val pages = mutableListOf() document.select(".page-chapter img").forEach { - pages.add(Page(pages.size, "", it.attr("data-original"))) + val imageUrl = it.attr("data-original") + pages.add(Page(pages.size, "", if(imageUrl.startsWith("//")) "http:$imageUrl" else imageUrl )) } return pages }