fix early manga chapter list (#5901)
This commit is contained in:
parent
64336e1567
commit
09c569db4d
|
@ -5,7 +5,7 @@ ext {
|
||||||
extName = 'EarlyManga'
|
extName = 'EarlyManga'
|
||||||
pkgNameSuffix = 'en.earlymanga'
|
pkgNameSuffix = 'en.earlymanga'
|
||||||
extClass = '.EarlyManga'
|
extClass = '.EarlyManga'
|
||||||
extVersionCode = 9
|
extVersionCode = 10
|
||||||
libVersion = '1.2'
|
libVersion = '1.2'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -126,8 +126,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:]) a[href*=chapter]:not([style*=display:])").attr("href"))
|
setUrlWithoutDomain(element.select(".col>.row>.col-lg-5:not([style*=display:]):not(.d-none) 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 = element.select(".col>.row>.col-lg-5:not([style*=display:]):not(.d-none) a[href*=chapter]:not([style*=display:])").attr("href").substringAfter("chapter")
|
||||||
name = "Chapter" + name
|
name = "Chapter" + name
|
||||||
date_upload = parseChapterDate(element.select(".ml-1").attr("title"))
|
date_upload = parseChapterDate(element.select(".ml-1").attr("title"))
|
||||||
}
|
}
|
||||||
|
@ -138,7 +138,8 @@ class EarlyManga : ParsedHttpSource() {
|
||||||
|
|
||||||
// pages
|
// pages
|
||||||
override fun pageListParse(document: Document): List<Page> {
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
return document.select("img[src*=manga],img[src*=chapter],div>div>img[src]"
|
return document.select(
|
||||||
|
"img[src*=manga],img[src*=chapter],div>div>img[src]"
|
||||||
).mapIndexed { i, element ->
|
).mapIndexed { i, element ->
|
||||||
Page(i, "", element.attr("abs:src"))
|
Page(i, "", element.attr("abs:src"))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue