Hentaivn Fix bug "error 404 views chapter" (#17284)

* Update build.gradle

* Fix 404 HVN
This commit is contained in:
are-are-are 2023-07-29 09:31:47 +07:00 committed by GitHub
parent 2a47132cf9
commit 276e464021
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 8 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'HentaiVN'
pkgNameSuffix = 'vi.hentaivn'
extClass = '.HentaiVN'
extVersionCode = 27
extVersionCode = 28
isNsfw = true
}

View File

@ -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<Page> {
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
}