Kuroi manga: Fix chapter name (#7156)

* fix chapters name

* clean fun
This commit is contained in:
dngonz 2025-01-13 22:17:53 +01:00 committed by Draff
parent 80aa0347fe
commit e12546007e
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 9 additions and 1 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.KuroiManga'
themePkg = 'madara'
baseUrl = 'https://kuroimanga.com'
overrideVersionCode = 0
overrideVersionCode = 1
isNsfw = true
}

View File

@ -2,7 +2,9 @@ package eu.kanade.tachiyomi.extension.tr.kuroimanga
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.SChapter
import org.jsoup.nodes.Document
import org.jsoup.nodes.Element
import java.text.SimpleDateFormat
import java.util.Locale
@ -26,4 +28,10 @@ class KuroiManga : Madara(
}
return pageList
}
override fun chapterFromElement(element: Element): SChapter {
return super.chapterFromElement(element).apply {
name = element.selectFirst("li > a")!!.text()
}
}
}