Weeb Central: specify offical and unofficial scans (#7566)
This commit is contained in:
parent
732949510a
commit
58941d9440
|
@ -1,7 +1,7 @@
|
|||
ext {
|
||||
extName = 'Weeb Central'
|
||||
extClass = '.WeebCentral'
|
||||
extVersionCode = 9
|
||||
extVersionCode = 10
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -160,6 +160,13 @@ class WeebCentral : ParsedHttpSource() {
|
|||
element.selectFirst("time[datetime]")?.also {
|
||||
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 {
|
||||
|
|
Loading…
Reference in New Issue