fix earlymanga chapter list (#5891)

This commit is contained in:
Riztard Lanthorn 2021-02-17 20:39:11 +07:00 committed by GitHub
parent cafb133aa1
commit 64336e1567
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

@ -126,8 +126,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 a[href*=chapter]").attr("href"))
name = element.select(".col>.row>.col-lg-5 a[href*=chapter]").attr("href").substringAfter("chapter")
setUrlWithoutDomain(element.select(".col>.row>.col-lg-5:not([style*=display:]) a[href*=chapter]:not([style*=display:])").attr("href"))
name = element.select(".col>.row>.col-lg-5:not([style*=display:]) a[href*=chapter]:not([style*=display:])").attr("href").substringAfter("chapter")
name = "Chapter" + name
date_upload = parseChapterDate(element.select(".ml-1").attr("title"))
}