Dâm Cô Nương: Fix chapter list not found (#2210)
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
# Following this blog:
|
||||
## Following this blog:
|
||||
# https://proandroiddev.com/how-we-reduced-our-gradle-build-times-by-over-80-51f2b6d6b05b
|
||||
kotlin.code.style=official
|
||||
org.gradle.jvmargs=-Xmx4g -XX:MaxMetaspaceSize=4096m -XX:+UseParallelGC
|
||||
org.gradle.vfs.watch=true
|
||||
org.gradle.configureondemand=true
|
||||
org.gradle.parallel=true
|
||||
org.gradle.caching=true
|
||||
org.gradle.configuration-cache=true
|
||||
org.gradle.workers.max=5
|
||||
|
||||
## Use these flags on local machine for faster build time
|
||||
# org.gradle.caching=true
|
||||
# org.gradle.configuration-cache=true
|
||||
# org.gradle.workers.max=5
|
||||
# org.gradle.vfs.watch=true
|
||||
|
||||
@@ -152,9 +152,8 @@ internal class DamCoNuong(context: MangaLoaderContext) :
|
||||
else -> MangaState.FINISHED
|
||||
}
|
||||
|
||||
val chapterListDiv =
|
||||
doc.selectFirst("div#chapterList.justify-between.border-2.border-gray-100.dark\\:border-dark-blue.p-3.bg-white.dark\\:bg-fire-blue.shadow-md.rounded.dark\\:shadow-gray-900.mb-4")
|
||||
?: throw ParseException("Chapters list not found!", url)
|
||||
val chapterListDiv = doc.selectFirst("ul#chapterList")
|
||||
?: throw ParseException("Chapters list not found!", url)
|
||||
|
||||
val chapterLinks = chapterListDiv.select("a.block")
|
||||
val chapters = chapterLinks.mapChapters(reversed = true) { index, a ->
|
||||
|
||||
Reference in New Issue
Block a user