Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/pt/spectralscan/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,17 @@ plugins {

keiyoushi {
name = "Nexus Toons"
versionCode = 62
contentWarning = ContentWarning.NSFW // or MIXED, please confirm
libVersion = "1.4"
versionCode = 0
contentWarning = ContentWarning.MIXED
libVersion = "1.6"

source {
lang = "pt-BR"
baseUrl = "https://nx-toons.xyz"
id = 5304928452449566995L
}

deeplink {
path("/manga/..*")
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,62 @@
package eu.kanade.tachiyomi.extension.pt.spectralscan

import eu.kanade.tachiyomi.source.model.Filter

class SelectFilter(
displayName: String,
val parameter: String,
private val vals: Array<Pair<String, String>>,
state: Int = 0,
) : Filter.Select<String>(displayName, vals.map { it.first }.toTypedArray(), state) {
fun selected() = vals[state].second
}

class CheckboxGroup(
displayName: String,
val parameter: String,
val items: List<CheckboxItem>,
) : Filter.Group<CheckboxItem>(displayName, items) {
fun selected() = items.filter { it.state }.map { it.value }
}

class CheckboxItem(
displayName: String,
val value: String,
) : Filter.CheckBox(displayName, false)

val sortList = arrayOf(
"Visualizações" to "views",
"Atualização" to "updatedAt",
"Adicionado" to "created",
"Título" to "title",
"Avaliações" to "rating",
"Capitulos" to "chapters",
"Ano" to "releaseYear",
)

val orderList = arrayOf(
"Decrescente" to "desc",
"Crescente" to "asc",
)

val statusList = arrayOf(
Pair("Em Andamento", "ongoing"),
Pair("Completo", "completed"),
Pair("Cancelado", "cancelled"),
Pair("Hiato", "hiatus"),
)

val typeList = arrayOf(
Pair("Manga", "manga"),
Pair("Manhwa", "manhwa"),
Pair("Manhua", "manhua"),
Pair("Webtoon", "webtoon"),
Pair("Comic", "comic"),
Pair("HQ", "hq"),
Pair("Pornhwa", "pornhwa"),
)

val categoryModeList = arrayOf(
"Qualquer categoria (OU)" to "or",
"Todas categorias (E)" to "and",
)
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ object NexusDecrypt {
return@Interceptor response
}

val body = response.body?.string() ?: return@Interceptor response
val body = response.body.string()

val decryptedBody = if (isEncryptedResponse(body)) {
try {
Expand Down
Loading
Loading