Traducciones Moonlight: Move to MangaThemesia (#1406)

* Move to MangaThemesia

* Is NSFW
This commit is contained in:
Rolando Lecca 2024-02-19 13:46:17 -05:00 committed by Draff
parent 3326753fc0
commit 921649ff76
2 changed files with 17 additions and 6 deletions

View File

@ -1,9 +1,10 @@
ext {
extName = 'Traducciones Moonlight'
extClass = '.TraduccionesMoonlight'
themePkg = 'madara'
themePkg = 'mangathemesia'
baseUrl = 'https://traduccionesmoonlight.com'
overrideVersionCode = 0
overrideVersionCode = 7
isNsfw = true
}
apply from: "$rootDir/common.gradle"

View File

@ -1,14 +1,24 @@
package eu.kanade.tachiyomi.extension.es.traduccionesmoonlight
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
import eu.kanade.tachiyomi.network.interceptor.rateLimitHost
import okhttp3.HttpUrl.Companion.toHttpUrl
import java.text.SimpleDateFormat
import java.util.Locale
class TraduccionesMoonlight : Madara(
class TraduccionesMoonlight : MangaThemesia(
"Traducciones Moonlight",
"https://traduccionesmoonlight.com",
"es",
SimpleDateFormat("dd 'de' MMMM 'de' yyyy", Locale("es")),
dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale("es")),
) {
override val useNewChapterEndpoint = true
// Site moved from Madara to MangaThemesia
override val versionId = 2
override val client = super.client.newBuilder()
.rateLimitHost(baseUrl.toHttpUrl(), 2, 1)
.build()
override val seriesAuthorSelector = ".tsinfo .imptdt:contains(autor) i"
override val seriesStatusSelector = ".tsinfo .imptdt:contains(estado) i"
}