Weeb Central: specify offical and unofficial scans (#7566)

This commit is contained in:
scb261 2025-02-09 09:35:14 +02:00 committed by Draff
parent 732949510a
commit 58941d9440
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 8 additions and 1 deletions

View File

@ -1,7 +1,7 @@
ext { ext {
extName = 'Weeb Central' extName = 'Weeb Central'
extClass = '.WeebCentral' extClass = '.WeebCentral'
extVersionCode = 9 extVersionCode = 10
isNsfw = true isNsfw = true
} }

View File

@ -160,6 +160,13 @@ class WeebCentral : ParsedHttpSource() {
element.selectFirst("time[datetime]")?.also { element.selectFirst("time[datetime]")?.also {
date_upload = it.attr("datetime").parseDate() date_upload = it.attr("datetime").parseDate()
} }
element.selectFirst("svg")?.attr("stroke")?.also { stroke ->
scanlator = when (stroke) {
"#d8b4fe" -> "Official"
"#4C4D54" -> "Unofficial"
else -> null
}
}
} }
private fun String.parseDate(): Long { private fun String.parseDate(): Long {