MangaFast fixes (#6666)

* Update MangaFast.kt

* Update build.gradle
This commit is contained in:
Johannes Joens 2021-04-22 18:44:27 +12:00 committed by GitHub
parent 4e956063e1
commit bd5f8aeb5f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'MangaFast'
pkgNameSuffix = 'en.mangafast'
extClass = '.MangaFast'
extVersionCode = 7
extVersionCode = 8
libVersion = '1.2'
}

View File

@ -69,6 +69,7 @@ class MangaFast : ParsedHttpSource() {
articleInfo.select("table.inftable tbody tr").forEach {
val row = it.select("td")
when (row[0].text()) {
"Comic Title" -> manga.title = row[1].text().trim()
"Genre" -> manga.genre = row[1].text().trim().removeSuffix(",")
"Author" -> manga.author = row[1].text().trim()
"Status" -> manga.status = parseStatus(row[1].text())
@ -85,7 +86,7 @@ class MangaFast : ParsedHttpSource() {
}
// chapter list
override fun chapterListSelector() = ".chapter-link"
override fun chapterListSelector() = ".chapter-link:not([title=\"Spoiler Manga\"])"
override fun chapterFromElement(element: Element) = SChapter.create().apply {
setUrlWithoutDomain(element.attr("href"))