diff --git a/src/zh/wnacg/build.gradle b/src/zh/wnacg/build.gradle index 0cec29845..a9f232ff2 100644 --- a/src/zh/wnacg/build.gradle +++ b/src/zh/wnacg/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'WNACG' pkgNameSuffix = 'zh.wnacg' extClass = '.wnacg' - extVersionCode = 7 + extVersionCode = 8 isNsfw = true } diff --git a/src/zh/wnacg/src/eu/kanade/tachiyomi/extension/zh/wnacg/wnacg.kt b/src/zh/wnacg/src/eu/kanade/tachiyomi/extension/zh/wnacg/wnacg.kt index 93fca038a..f1c904018 100644 --- a/src/zh/wnacg/src/eu/kanade/tachiyomi/extension/zh/wnacg/wnacg.kt +++ b/src/zh/wnacg/src/eu/kanade/tachiyomi/extension/zh/wnacg/wnacg.kt @@ -63,6 +63,7 @@ class wnacg : ParsedHttpSource() { manga.url = link.attr("href") manga.title = link.text() manga.thumbnail_url = element.selectFirst("img").absUrl("src") + .replaceBefore(':', "http") // maybe the local cache cause the old source (url) can not be update. but the image can be update on detailpage. // ps. new machine can be load img normal. @@ -83,7 +84,7 @@ class wnacg : ParsedHttpSource() { manga.artist = document.selectFirst("div.uwuinfo p")?.text() ?: "Unknown" manga.author = document.selectFirst("div.uwuinfo p")?.text() ?: "Unknown" manga.thumbnail_url = - "https://" + document.selectFirst("div.uwthumb img").attr("src").replace("//", "") + "http:" + document.selectFirst("div.uwthumb img").attr("src") manga.description = document.selectFirst("div.asTBcell p")?.html()?.replace("
", "\n") @@ -103,7 +104,7 @@ class wnacg : ParsedHttpSource() { val galleryaid = response.body!!.string() return regex.findAll(galleryaid).mapIndexedTo(ArrayList()) { index, match -> - Page(index, imageUrl = "https:" + match.value) + Page(index, imageUrl = "http:" + match.value) } }