fix earlymanga chapter list (#5968)

This commit is contained in:
Riztard Lanthorn 2021-02-24 06:22:13 +07:00 committed by GitHub
parent a728ea4519
commit 31985422b2
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 = 'EarlyManga' extName = 'EarlyManga'
pkgNameSuffix = 'en.earlymanga' pkgNameSuffix = 'en.earlymanga'
extClass = '.EarlyManga' extClass = '.EarlyManga'
extVersionCode = 13 extVersionCode = 14
libVersion = '1.2' libVersion = '1.2'
} }

View File

@ -90,7 +90,7 @@ class EarlyManga : ParsedHttpSource() {
author = document.select(".author-link a").text() author = document.select(".author-link a").text()
artist = document.select(".artist-link a").text() artist = document.select(".artist-link a").text()
status = parseStatus(document.select(".pub_stutus").text()) status = parseStatus(document.select(".pub_stutus").text())
description = document.select(".desc:not([class*=none])").text() description = document.select(".desc:not([class*=none])").text().replace("_", "")
genre = document.select(".manga-info-card a.badge-secondary").joinToString { it.text() } genre = document.select(".manga-info-card a.badge-secondary").joinToString { it.text() }
} }
@ -128,8 +128,8 @@ class EarlyManga : ParsedHttpSource() {
override fun chapterListSelector() = ".chapter-container > .row:not(:first-child)" override fun chapterListSelector() = ".chapter-container > .row:not(:first-child)"
override fun chapterFromElement(element: Element) = SChapter.create().apply { override fun chapterFromElement(element: Element) = SChapter.create().apply {
setUrlWithoutDomain(element.select(".col>.row>.col-lg-5:not([style*=display:]):has(a[href*=chapter-]) a[href*=chapter]:not([style*=display:])").attr("href")) setUrlWithoutDomain(element.select(".col>.row>.col-lg-5:not([style*=display:]):not(:nth-child(2)) a[href*=chapter]:not([style*=display:])").attr("href"))
name = "Chapter" + url.substringAfter("chapter") name = "Chapter " + url.substringAfter("chapter-")
date_upload = parseChapterDate(element.select(".ml-1").attr("title")) date_upload = parseChapterDate(element.select(".ml-1").attr("title"))
} }