Batcave: Add Genres (#10237)

This commit is contained in:
Hiirbaf 2025-08-24 06:51:41 -03:00 committed by Draff
parent eb480815e8
commit 70df8cbfa9
Signed by: Draff
GPG Key ID: E8A89F3211677653
2 changed files with 5 additions and 1 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'BatCave'
extClass = '.BatCave'
extVersionCode = 4
extVersionCode = 5
}
apply from: "$rootDir/common.gradle"

View File

@ -180,6 +180,10 @@ class BatCave : HttpSource() {
thumbnail_url = document.selectFirst("div.page__poster img")?.absUrl("src")
description = document.selectFirst("div.page__text")?.wholeText()
author = document.selectFirst(".page__list > li:has(> div:contains(Publisher))")?.ownText()
genre = buildList {
document.select("div.page__tags a").mapTo(this) { it.text() }
add("Comic")
}.joinToString()
status = when (document.selectFirst(".page__list > li:has(> div:contains(release type))")?.ownText()?.trim()) {
"Ongoing" -> SManga.ONGOING
"Complete" -> SManga.COMPLETED