diff --git a/src/id/mangkomik/build.gradle b/src/id/mangkomik/build.gradle index 53ef37c25..5016245ca 100644 --- a/src/id/mangkomik/build.gradle +++ b/src/id/mangkomik/build.gradle @@ -3,7 +3,7 @@ ext { extClass = '.SirenKomik' themePkg = 'mangathemesia' baseUrl = 'https://sirenkomik.my.id' - overrideVersionCode = 3 + overrideVersionCode = 4 } apply from: "$rootDir/common.gradle" diff --git a/src/id/mangkomik/src/eu/kanade/tachiyomi/extension/id/mangkomik/SirenKomik.kt b/src/id/mangkomik/src/eu/kanade/tachiyomi/extension/id/mangkomik/SirenKomik.kt index a102ea9d8..2b1861855 100644 --- a/src/id/mangkomik/src/eu/kanade/tachiyomi/extension/id/mangkomik/SirenKomik.kt +++ b/src/id/mangkomik/src/eu/kanade/tachiyomi/extension/id/mangkomik/SirenKomik.kt @@ -25,11 +25,12 @@ class SirenKomik : MangaThemesia( override val seriesAuthorSelector = ".keterangan-komik:contains(author) span" override val seriesArtistSelector = ".keterangan-komik:contains(artist) span" + override fun chapterListSelector() = ".list-chapter a" + override fun chapterFromElement(element: Element) = SChapter.create().apply { - val urlElements = element.select("a") - setUrlWithoutDomain(urlElements.attr("href")) - name = element.select(".nomer-chapter").text().ifBlank { urlElements.first()!!.text() } + name = element.selectFirst(".nomer-chapter")!!.text() date_upload = element.selectFirst(".tgl-chapter")?.text().parseChapterDate() + setUrlWithoutDomain(element.absUrl("href")) } override fun pageListParse(document: Document): List {