ManhuaID: fix browse n latest issue (#10459)

This commit is contained in:
Riztard Lanthorn 2022-01-14 21:46:10 +07:00 committed by GitHub
parent b38bcd4f0b
commit f6ba68974c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'ManhuaID'
pkgNameSuffix = 'id.manhuaid'
extClass = '.ManhuaID'
extVersionCode = 7
extVersionCode = 8
}
apply from: "$rootDir/common.gradle"

View File

@ -32,7 +32,7 @@ class ManhuaID : ParsedHttpSource() {
// popular
override fun popularMangaSelector() = "a:has(img.card-img)"
override fun popularMangaRequest(page: Int) = GET("$baseUrl/popular/$page", headers)
override fun popularMangaRequest(page: Int) = GET("$baseUrl/index.php/project?page_project=$page", headers)
override fun popularMangaFromElement(element: Element) = SManga.create().apply {
setUrlWithoutDomain(element.attr("href"))
@ -45,7 +45,7 @@ class ManhuaID : ParsedHttpSource() {
// latest
override fun latestUpdatesSelector() = popularMangaSelector()
override fun latestUpdatesRequest(page: Int) = GET("$baseUrl/latest/$page", headers)
override fun latestUpdatesRequest(page: Int) = GET("$baseUrl/index.php/project?page_project=$page", headers)
override fun latestUpdatesFromElement(element: Element) = popularMangaFromElement(element)