Skip to content

Commit

Permalink
Weeb Central: specify offical and unofficial scans (#7566)
Browse files Browse the repository at this point in the history
  • Loading branch information
scb261 authored Feb 9, 2025
1 parent b3f9626 commit 07fb2a1
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/en/weebcentral/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
ext {
extName = 'Weeb Central'
extClass = '.WeebCentral'
extVersionCode = 9
extVersionCode = 10
isNsfw = true
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 07fb2a1

Please sign in to comment.