Batcave: Add Genres (#10237)
This commit is contained in:
parent
eb480815e8
commit
70df8cbfa9
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'BatCave'
|
||||
extClass = '.BatCave'
|
||||
extVersionCode = 4
|
||||
extVersionCode = 5
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user