Asura: add type to genres (#4311)

This commit is contained in:
AwkwardPeak7 2024-07-29 08:02:32 +05:00 committed by Draff
parent e5a68f8ba4
commit 401e53d45a
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 7 additions and 2 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'Asura Scans'
extClass = '.AsuraScans'
extVersionCode = 37
extVersionCode = 38
}
apply from: "$rootDir/common.gradle"

View File

@ -205,7 +205,12 @@ class AsuraScans : ParsedHttpSource(), ConfigurableSource {
description = document.selectFirst("span.font-medium.text-sm")?.text()
author = document.selectFirst("div.grid > div:has(h3:eq(0):containsOwn(Author)) > h3:eq(1)")?.ownText()
artist = document.selectFirst("div.grid > div:has(h3:eq(0):containsOwn(Artist)) > h3:eq(1)")?.ownText()
genre = document.select("div[class^=space] > div.flex > button.text-white").joinToString { it.ownText() }
genre = buildList {
document.selectFirst("div.flex:has(h3:eq(0):containsOwn(type)) > h3:eq(1)")
?.ownText()?.let(::add)
document.select("div[class^=space] > div.flex > button.text-white")
.forEach { add(it.ownText()) }
}.joinToString()
status = parseStatus(document.selectFirst("div.flex:has(h3:eq(0):containsOwn(Status)) > h3:eq(1)")?.ownText())
}