diff --git a/src/vi/hentaivn/build.gradle b/src/vi/hentaivn/build.gradle index 875c40000..d0c6f5454 100644 --- a/src/vi/hentaivn/build.gradle +++ b/src/vi/hentaivn/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'HentaiVN' pkgNameSuffix = 'vi.hentaivn' extClass = '.HentaiVN' - extVersionCode = 27 + extVersionCode = 28 isNsfw = true } diff --git a/src/vi/hentaivn/src/eu/kanade/tachiyomi/extension/vi/hentaivn/HentaiVN.kt b/src/vi/hentaivn/src/eu/kanade/tachiyomi/extension/vi/hentaivn/HentaiVN.kt index 405808f89..398707240 100644 --- a/src/vi/hentaivn/src/eu/kanade/tachiyomi/extension/vi/hentaivn/HentaiVN.kt +++ b/src/vi/hentaivn/src/eu/kanade/tachiyomi/extension/vi/hentaivn/HentaiVN.kt @@ -135,13 +135,8 @@ class HentaiVN : ParsedHttpSource() { } // Pages - override fun pageListRequest(chapter: SChapter): Request { - val mangaId = chapter.url.substringAfterLast("/").substringBefore('-') - val mangaEP = chapter.url.substringAfter("-").substringBefore("-") - return GET("$baseUrl/list-loadchapter.php?id_episode=$mangaEP&idchapshowz=$mangaId", headers) - } override fun pageListParse(document: Document): List { - return document.select("img").mapIndexed { i, e -> + return document.select("#image > img").mapIndexed { i, e -> Page(i, imageUrl = e.attr("abs:src")) } } @@ -172,7 +167,7 @@ class HentaiVN : ParsedHttpSource() { manga.setUrlWithoutDomain(it.attr("href")) manga.title = it.text().trim() } - manga.thumbnail_url = element.select("div.search-img img, .box-cover a img").attr("abs:src") + manga.thumbnail_url = element.select("div.search-img img").attr("abs:src") return manga }