Fix vgperson (#527)

This commit is contained in:
Mike 2024-01-23 09:04:11 -05:00 committed by Draff
parent 179f70e77c
commit d631818f99
2 changed files with 3 additions and 3 deletions

View File

@ -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"

View File

@ -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 {