Team X: Update chapter list selectors (#11362)

update chapter list selectors and extVersionCode
This commit is contained in:
Moha src 2025-11-01 11:58:00 +04:00 committed by Draff
parent b26e4829de
commit d8bef0a1af
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 5 additions and 5 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Team X'
extClass = '.TeamX'
extVersionCode = 22
extVersionCode = 23
isNsfw = false
}

View File

@ -180,19 +180,19 @@ class TeamX : ParsedHttpSource(), ConfigurableSource {
private val chapterFormat = SimpleDateFormat("yyyy-MM-dd hh:mm:ss", Locale.getDefault())
override fun chapterListSelector() = "div.eplister ul a"
override fun chapterListSelector() = "div.chapter-card a"
override fun chapterFromElement(element: Element): SChapter {
return SChapter.create().apply {
val chpNum = element.select("div.epl-num").text()
val chpTitle = element.select("div.epl-title").text()
val chpNum = element.select("div.chapter-info div.chapter-number").text()
val chpTitle = element.select("div.chapter-info div.chapter-title").text()
name = when (chpNum.isNullOrBlank()) {
true -> chpTitle
false -> "$chpNum - $chpTitle"
}
date_upload = parseChapterDate(element.select("div.epl-date").text())
date_upload = parseChapterDate(element.select("div.chapter-info div.chapter-date").text())
setUrlWithoutDomain(element.attr("href"))
}