From bcc095bf5116d71f5737134f78e518cf842d83dc Mon Sep 17 00:00:00 2001 From: Le Cong Hau Date: Thu, 16 May 2019 02:35:46 +0700 Subject: [PATCH] Fix link image (#1111) Fix link image --- src/vi/nettruyen/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/vi/nettruyen/NetTruyen.kt | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) 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 }