fix earlymanga chapter page & clean chapter name (#5867)

This commit is contained in:
Riztard Lanthorn 2021-02-15 21:24:05 +07:00 committed by GitHub
parent df3b2f29d6
commit 78cb4e96b4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -5,7 +5,7 @@ ext {
extName = 'EarlyManga'
pkgNameSuffix = 'en.earlymanga'
extClass = '.EarlyManga'
extVersionCode = 4
extVersionCode = 5
libVersion = '1.2'
}

View File

@ -119,7 +119,8 @@ class EarlyManga : ParsedHttpSource() {
override fun chapterFromElement(element: Element) = SChapter.create().apply {
setUrlWithoutDomain(element.select(".col-lg-5 a").attr("href"))
name = element.select(".col-lg-5 a").text()
val access = element.select(".col-lg-5 a div").text()
name = element.select(".col-lg-5 a").text().substringAfter(access)
date_upload = parseChapterDate(element.select(".ml-1").attr("title"))
}
@ -129,7 +130,7 @@ class EarlyManga : ParsedHttpSource() {
// pages
override fun pageListParse(document: Document): List<Page> {
return document.select(".chapter-images-container-inside > img").mapIndexed { i, element ->
return document.select(".chapter-images-container-inside .interior img").mapIndexed { i, element ->
Page(i, "", element.attr("abs:src"))
}
}