Team X: Update chapter list selectors (#11362)
update chapter list selectors and extVersionCode
This commit is contained in:
parent
b26e4829de
commit
d8bef0a1af
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'Team X'
|
extName = 'Team X'
|
||||||
extClass = '.TeamX'
|
extClass = '.TeamX'
|
||||||
extVersionCode = 22
|
extVersionCode = 23
|
||||||
isNsfw = false
|
isNsfw = false
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -180,19 +180,19 @@ class TeamX : ParsedHttpSource(), ConfigurableSource {
|
|||||||
|
|
||||||
private val chapterFormat = SimpleDateFormat("yyyy-MM-dd hh:mm:ss", Locale.getDefault())
|
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 {
|
override fun chapterFromElement(element: Element): SChapter {
|
||||||
return SChapter.create().apply {
|
return SChapter.create().apply {
|
||||||
val chpNum = element.select("div.epl-num").text()
|
val chpNum = element.select("div.chapter-info div.chapter-number").text()
|
||||||
val chpTitle = element.select("div.epl-title").text()
|
val chpTitle = element.select("div.chapter-info div.chapter-title").text()
|
||||||
|
|
||||||
name = when (chpNum.isNullOrBlank()) {
|
name = when (chpNum.isNullOrBlank()) {
|
||||||
true -> chpTitle
|
true -> chpTitle
|
||||||
false -> "$chpNum - $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"))
|
setUrlWithoutDomain(element.attr("href"))
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user