zh/manwa: Add status indicator (#9220)

zh/manwa: add status indicator
This commit is contained in:
morallkat 2025-06-14 05:08:11 +08:00 committed by Draff
parent 7b84e27eae
commit 3244e3fe53
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 6 additions and 1 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Manwa'
extClass = '.Manwa'
extVersionCode = 11
extVersionCode = 12
isNsfw = true
}

View File

@ -228,6 +228,11 @@ class Manwa : ParsedHttpSource(), ConfigurableSource {
thumbnail_url = document.selectFirst("div.detail-main-cover > img")!!.attr("data-original")
author = document.select("p.detail-main-info-author > span.detail-main-info-value > a").text()
artist = author
status = when (document.select("p.detail-main-info-author:contains(更新状态) > span.detail-main-info-value")!!.text()) {
"连载中" -> SManga.ONGOING
"已完结" -> SManga.COMPLETED
else -> SManga.UNKNOWN
}
genre = document.select("div.detail-main-info-class > a.info-tag").eachText().joinToString(", ")
description = document.selectFirst("#detail > p.detail-desc")!!.text()
}