Madara: fix status with spaces (#7474)
This commit is contained in:
parent
c4c6fe69f4
commit
b6ed7ac63b
|
@ -2,7 +2,7 @@ plugins {
|
|||
id("lib-multisrc")
|
||||
}
|
||||
|
||||
baseVersionCode = 38
|
||||
baseVersionCode = 39
|
||||
|
||||
dependencies {
|
||||
api(project(":lib:cryptoaes"))
|
||||
|
|
|
@ -680,7 +680,7 @@ abstract class Madara(
|
|||
manga.thumbnail_url = imageFromElement(it)
|
||||
}
|
||||
select(mangaDetailsSelectorStatus).last()?.let {
|
||||
manga.status = with(it.text().filter { text -> text.isLetterOrDigit() }) {
|
||||
manga.status = with(it.text().filter { ch -> ch.isLetterOrDigit() || ch.isWhitespace() }.trim()) {
|
||||
when {
|
||||
containsIn(completedStatusList) -> SManga.COMPLETED
|
||||
containsIn(ongoingStatusList) -> SManga.ONGOING
|
||||
|
|
Loading…
Reference in New Issue