Skip to content

Commit

Permalink
SilenceScan: Fix status (#5849)
Browse files Browse the repository at this point in the history
Fix status
  • Loading branch information
choppeh authored Nov 3, 2024
1 parent 5dfa53e commit 02f1962
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion src/pt/silencescan/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ ext {
extClass = '.SilenceScan'
themePkg = 'mangathemesia'
baseUrl = 'https://silencescan.com.br'
overrideVersionCode = 5
overrideVersionCode = 6
isNsfw = true
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
}
}

0 comments on commit 02f1962

Please sign in to comment.