Manhua Fenix: Change name and domain and add Spanish translations to Madara (#1365)

* Change name and domain

* Remove overrides and use loadMoreRequest

* Add Spanish translations

* Review

* Revert bump
This commit is contained in:
Rolando Lecca 2024-02-19 08:08:06 -05:00 committed by GitHub
parent 6869674087
commit 00dc9fedb4
11 changed files with 42 additions and 14 deletions

View File

@ -24,4 +24,4 @@ adult_content_filter_only=Only
genre_filter_header=Genres filter may not work for all sources genre_filter_header=Genres filter may not work for all sources
genre_filter_title=Genres genre_filter_title=Genres
genre_missing_warning=Press 'Reset' to attempt to show the genres genre_missing_warning=Press 'Reset' to attempt to show the genres
alt_names_heading=Alternative Names: alt_names_heading=Alternative Names:

View File

@ -0,0 +1,26 @@
author_filter_title=Autor
artist_filter_title=Artista
year_filter_title=Año de lanzamiento
status_filter_title=Estado
status_filter_completed=Completado
status_filter_ongoing=En curso
status_filter_canceled=Cancelado
status_filter_on_hold=En pausa
order_by_filter_title=Ordenar por
order_by_filter_relevance=Relevancia
order_by_filter_latest=Reciente
order_by_filter_rating=Valoración
order_by_filter_trending=Tendencia
order_by_filter_views=Vistas
order_by_filter_new=Nuevos
genre_condition_filter_title=Condición de género
genre_condition_filter_or=O
genre_condition_filter_and=Y
adult_content_filter_title=Contenido adulto
adult_content_filter_all=Todos
adult_content_filter_none=Ninguno
adult_content_filter_only=Solo
genre_filter_header=Es posible que el filtro de géneros no funcione correctamente
genre_filter_title=Géneros
genre_missing_warning=Presione 'Restablecer' para intentar mostrar los géneros
alt_names_heading=Nombres Alternativos:

View File

@ -23,4 +23,4 @@ adult_content_filter_only=Somente
genre_filter_header=O filtro de gêneros pode não funcionar genre_filter_header=O filtro de gêneros pode não funcionar
genre_filter_title=Gêneros genre_filter_title=Gêneros
genre_missing_warning=Aperte 'Redefinir' para tentar mostrar os gêneros genre_missing_warning=Aperte 'Redefinir' para tentar mostrar os gêneros
alt_names_heading=Nomes alternativos: alt_names_heading=Nomes alternativos:

View File

@ -59,7 +59,7 @@ abstract class Madara(
protected val intl = Intl( protected val intl = Intl(
language = lang, language = lang,
baseLanguage = "en", baseLanguage = "en",
availableLanguages = setOf("en", "pt-BR"), availableLanguages = setOf("en", "pt-BR", "es"),
classLoader = this::class.java.classLoader!!, classLoader = this::class.java.classLoader!!,
) )
@ -712,8 +712,8 @@ abstract class Madara(
document.selectFirst(altNameSelector)?.ownText()?.let { document.selectFirst(altNameSelector)?.ownText()?.let {
if (it.isBlank().not() && it.notUpdating()) { if (it.isBlank().not() && it.notUpdating()) {
manga.description = when { manga.description = when {
manga.description.isNullOrBlank() -> altName + it manga.description.isNullOrBlank() -> "$altName " + it
else -> manga.description + "\n\n$altName" + it else -> manga.description + "\n\n$altName " + it
} }
} }
} }

View File

@ -1,9 +1,9 @@
ext { ext {
extName = 'Manhua Fenix' extName = 'MMFenix'
extClass = '.ManhuaFenix' extClass = '.MMFenix'
themePkg = 'madara' themePkg = 'madara'
baseUrl = 'https://visorfenix.com' baseUrl = 'https://mmfenix.com'
overrideVersionCode = 4 overrideVersionCode = 5
} }
apply from: "$rootDir/common.gradle" apply from: "$rootDir/common.gradle"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 22 KiB

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 17 KiB

View File

@ -6,16 +6,18 @@ import okhttp3.OkHttpClient
import java.text.SimpleDateFormat import java.text.SimpleDateFormat
import java.util.Locale import java.util.Locale
class ManhuaFenix : Madara( class MMFenix : Madara(
"Manhua Fenix", "MMFenix",
"https://visorfenix.com", "https://mmfenix.com",
"es", "es",
SimpleDateFormat("dd MMMM, yyyy", Locale("es")), SimpleDateFormat("MMMM dd, yyyy", Locale("es")),
) { ) {
override val id: Long = 19158964284779393 override val id: Long = 19158964284779393
override val useLoadMoreRequest = LoadMoreStrategy.Always
override val client: OkHttpClient = super.client.newBuilder() override val client: OkHttpClient = super.client.newBuilder()
.rateLimit(1) .rateLimit(2)
.build() .build()
} }