Asura: add type to genres (#4311)
This commit is contained in:
parent
e5a68f8ba4
commit
401e53d45a
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'Asura Scans'
|
extName = 'Asura Scans'
|
||||||
extClass = '.AsuraScans'
|
extClass = '.AsuraScans'
|
||||||
extVersionCode = 37
|
extVersionCode = 38
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
@ -205,7 +205,12 @@ class AsuraScans : ParsedHttpSource(), ConfigurableSource {
|
|||||||
description = document.selectFirst("span.font-medium.text-sm")?.text()
|
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()
|
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()
|
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())
|
status = parseStatus(document.selectFirst("div.flex:has(h3:eq(0):containsOwn(Status)) > h3:eq(1)")?.ownText())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user