Emerald fix some bug (#4720)

* fix emerald manga details

* fix emerald last tag issue

* update ext version

* fix Emerald max 60 manga
This commit is contained in:
Riztard Lanthorn 2020-10-25 18:16:21 +07:00 committed by GitHub
parent 245e3f0d7e
commit 720c35b847
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'Emerald'
pkgNameSuffix = 'all.emerald'
extClass = '.EmeraldFactory'
extVersionCode = 3
extVersionCode = 4
libVersion = '1.2'
}

View File

@ -48,7 +48,7 @@ open class Emerald(
return manga
}
override fun latestUpdatesNextPageSelector() = "div.browse-pager:contains(order) .page-item:not(.disabled) a.page-link:contains(»)"
override fun latestUpdatesNextPageSelector() = "div#mainer .pagination .page-item:not(.disabled) a.page-link:contains(»)"
override fun popularMangaRequest(page: Int): Request {
return GET("$baseUrl/browse?langs=$Mtlang&sort=views_w&page=$page")
@ -161,7 +161,7 @@ open class Emerald(
}
override fun mangaDetailsParse(document: Document): SManga {
val infoElement = document.select("div#series-page div.container")
val infoElement = document.select("div#mainer div.container-fluid")
val manga = SManga.create()
val genres = mutableListOf<String>()
val status = infoElement.select("div.attr-item:contains(status) span").text()
@ -175,7 +175,7 @@ open class Emerald(
manga.author = infoElement.select("div.attr-item:contains(author) a:first-child").text()
manga.artist = infoElement.select("div.attr-item:contains(author) a:last-child").text()
manga.status = parseStatus(status)
manga.genre = genres.joinToString(", ")
manga.genre = infoElement.select(".attr-item b:contains(genres) + span ").joinToString { it.text() }
manga.description = infoElement.select("h5:contains(summary) + pre").text()
manga.thumbnail_url = document.select("div.attr-cover img")
.attr("abs:src")