From a3abc81dfc8c732ed4ac8ec6174fda2534bb62e6 Mon Sep 17 00:00:00 2001 From: Draken <131387159+dragonx943@users.noreply.github.com> Date: Fri, 19 Sep 2025 05:33:12 +0700 Subject: [PATCH] =?UTF-8?q?D=C3=A2m=20C=C3=B4=20N=C6=B0=C6=A1ng:=20Fix=20c?= =?UTF-8?q?hapter=20list=20not=20found=20(#2210)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gradle.properties | 12 +++++++----- .../koitharu/kotatsu/parsers/site/vi/DamCoNuong.kt | 5 ++--- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/gradle.properties b/gradle.properties index 62441fd3..5f3d7642 100644 --- a/gradle.properties +++ b/gradle.properties @@ -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 diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/vi/DamCoNuong.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/vi/DamCoNuong.kt index 30743f9c..ef26455e 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/vi/DamCoNuong.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/vi/DamCoNuong.kt @@ -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 ->