Fix vgperson (#527)
This commit is contained in:
parent
179f70e77c
commit
d631818f99
|
@ -1,7 +1,7 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'vgperson'
|
extName = 'vgperson'
|
||||||
extClass = '.Vgperson'
|
extClass = '.Vgperson'
|
||||||
extVersionCode = 4
|
extVersionCode = 5
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
|
@ -59,7 +59,7 @@ class Vgperson : ParsedHttpSource() {
|
||||||
}
|
}
|
||||||
|
|
||||||
override fun mangaDetailsParse(document: Document) = SManga.create().apply {
|
override fun mangaDetailsParse(document: Document) = SManga.create().apply {
|
||||||
status = when (document.select(".chaptername").first()!!.text()) {
|
status = when (document.select("div.content .complete").text()) {
|
||||||
"(Complete)" -> SManga.COMPLETED
|
"(Complete)" -> SManga.COMPLETED
|
||||||
"(Series in Progress)" -> SManga.ONGOING
|
"(Series in Progress)" -> SManga.ONGOING
|
||||||
else -> SManga.UNKNOWN
|
else -> SManga.UNKNOWN
|
||||||
|
@ -84,7 +84,7 @@ class Vgperson : ParsedHttpSource() {
|
||||||
override fun chapterFromElement(element: Element) = SChapter.create().apply {
|
override fun chapterFromElement(element: Element) = SChapter.create().apply {
|
||||||
element.select("td > a").first()!!.let {
|
element.select("td > a").first()!!.let {
|
||||||
name = it.text()
|
name = it.text()
|
||||||
url = it.attr("href")
|
setUrlWithoutDomain(it.attr("abs:href"))
|
||||||
}
|
}
|
||||||
// append the name if it exists & remove the occasional hyphen
|
// append the name if it exists & remove the occasional hyphen
|
||||||
element.select(".chaptername").first()?.let {
|
element.select(".chaptername").first()?.let {
|
||||||
|
|
Loading…
Reference in New Issue