SilenceScan: Fix status (#5849)

Fix status
This commit is contained in:
Chopper 2024-11-03 08:58:32 -03:00 committed by GitHub
parent 5dfa53e98f
commit 02f1962632
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 2 additions and 10 deletions

View File

@ -292,7 +292,7 @@ abstract class MangaThemesia(
listOf("canceled", "cancelled", "cancelado", "cancellato", "cancelados", "dropped", "discontinued", "abandonné")
.any { this.contains(it, ignoreCase = true) } -> SManga.CANCELLED
listOf("hiatus", "on hold", "pausado", "en espera", "en pause", "en attente")
listOf("hiatus", "on hold", "pausado", "en espera", "en pause", "en attente", "hiato")
.any { this.contains(it, ignoreCase = true) } -> SManga.ON_HIATUS
else -> SManga.UNKNOWN

View File

@ -3,7 +3,7 @@ ext {
extClass = '.SilenceScan'
themePkg = 'mangathemesia'
baseUrl = 'https://silencescan.com.br'
overrideVersionCode = 5
overrideVersionCode = 6
isNsfw = true
}

View File

@ -2,7 +2,6 @@ package eu.kanade.tachiyomi.extension.pt.silencescan
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import eu.kanade.tachiyomi.source.model.SManga
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
@ -22,11 +21,4 @@ class SilenceScan : MangaThemesia(
.build()
override val altNamePrefix = "Nome alternativo: "
override fun String?.parseStatus() = when {
this == null -> SManga.UNKNOWN
this.contains("Em Andamento") -> SManga.ONGOING
this.contains("Completo") -> SManga.COMPLETED
else -> SManga.UNKNOWN
}
}