From 31985422b2eef099bab5797fd9c90b15c0798f74 Mon Sep 17 00:00:00 2001 From: Riztard Lanthorn Date: Wed, 24 Feb 2021 06:22:13 +0700 Subject: [PATCH] fix earlymanga chapter list (#5968) --- src/en/earlymanga/build.gradle | 2 +- .../kanade/tachiyomi/extension/en/earlymanga/EarlyManga.kt | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/en/earlymanga/build.gradle b/src/en/earlymanga/build.gradle index f417bec9e..767b7b309 100644 --- a/src/en/earlymanga/build.gradle +++ b/src/en/earlymanga/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'EarlyManga' pkgNameSuffix = 'en.earlymanga' extClass = '.EarlyManga' - extVersionCode = 13 + extVersionCode = 14 libVersion = '1.2' } diff --git a/src/en/earlymanga/src/eu/kanade/tachiyomi/extension/en/earlymanga/EarlyManga.kt b/src/en/earlymanga/src/eu/kanade/tachiyomi/extension/en/earlymanga/EarlyManga.kt index 90c0687e9..c9075c58e 100644 --- a/src/en/earlymanga/src/eu/kanade/tachiyomi/extension/en/earlymanga/EarlyManga.kt +++ b/src/en/earlymanga/src/eu/kanade/tachiyomi/extension/en/earlymanga/EarlyManga.kt @@ -90,7 +90,7 @@ class EarlyManga : ParsedHttpSource() { author = document.select(".author-link a").text() artist = document.select(".artist-link a").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() } } @@ -128,8 +128,8 @@ class EarlyManga : ParsedHttpSource() { override fun chapterListSelector() = ".chapter-container > .row:not(:first-child)" 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")) - name = "Chapter" + url.substringAfter("chapter") + 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-") date_upload = parseChapterDate(element.select(".ml-1").attr("title")) }