diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/wpcomics/vi/NewTruyen.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/wpcomics/vi/NewTruyen.kt index 57e21806..013d918e 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/wpcomics/vi/NewTruyen.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/wpcomics/vi/NewTruyen.kt @@ -52,6 +52,20 @@ internal class NewTruyen(context: MangaLoaderContext) : ) } + override suspend fun getPages(chapter: MangaChapter): List { + val fullUrl = chapter.url.toAbsoluteUrl(domain) + val doc = webClient.httpGet(fullUrl).parseHtml() + return doc.select("div.page-chapter").map { url -> + val img = url.selectFirst("img")?.attr("src") ?: url.attr("data-src") + MangaPage( + id = generateUid(img), + url = img, + preview = null, + source = source, + ) + } + } + private suspend fun getChapterList(storyID: String): List { val url = "/Story/ListChapterByStoryID?storyID=$storyID" val fullUrl = url.toAbsoluteUrl(domain)