Move TT from Madara to WpMangaReader. (#10400)

This commit is contained in:
Alessandro Jean 2022-01-09 13:28:59 -03:00 committed by GitHub
parent 28e4219264
commit 78830fcfa3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
12 changed files with 37 additions and 38 deletions

View File

@ -1,25 +0,0 @@
package eu.kanade.tachiyomi.extension.pt.tsundokutraducoes
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.madara.Madara
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class TsundokuTraducoes : Madara(
"Tsundoku Traduções",
"https://tsundokutraducoes.com.br",
"pt-BR",
SimpleDateFormat("dd/MM/yyyy", Locale("pt", "BR"))
) {
// Hardcode the id because the language code was wrong.
override val id: Long = 3941383635597527601
override val client: OkHttpClient = super.client.newBuilder()
.addInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS))
.build()
override fun popularMangaSelector() = "div.page-item-detail.manga"
}

View File

Before

Width:  |  Height:  |  Size: 212 KiB

After

Width:  |  Height:  |  Size: 212 KiB

View File

@ -0,0 +1,24 @@
package eu.kanade.tachiyomi.extension.pt.tsundokutraducoes
import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor
import eu.kanade.tachiyomi.multisrc.wpmangareader.WPMangaReader
import okhttp3.OkHttpClient
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class TsundokuTraducoes : WPMangaReader(
"Tsundoku Traduções",
"https://tsundokutraducoes.com.br",
"pt-BR",
dateFormat = SimpleDateFormat("MMMMM d, yyyy", Locale("pt", "BR"))
) {
override val client: OkHttpClient = network.cloudflareClient.newBuilder()
.addNetworkInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS))
.build()
override val altName = "Nome alternativo: "
override fun searchMangaSelector() = ".utao .uta .imgu, .listupd .bs .bsx:not(:has(span.novelabel)), .listo .bs .bsx:not(:has(span.novelabel))"
}

View File

@ -399,7 +399,6 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("Top Manhua", "https://topmanhua.com", "en", overrideVersionCode = 1),
SingleLang("TreeManga", "https://treemanga.com", "en", overrideVersionCode = 1),
SingleLang("TritiniaScans", "https://tritinia.com", "en", overrideVersionCode = 1),
SingleLang("Tsundoku Traduções", "https://tsundokutraducoes.com.br", "pt-BR", pkgName = "tsundokutraducoes", className = "TsundokuTraducoes", overrideVersionCode = 3),
SingleLang("TuManga.net", "https://tumanga.net", "es", className = "TuMangaNet"),
SingleLang("Twilight Scans", "https://twilightscans.com", "en", overrideVersionCode = 1),
SingleLang("Türkçe Manga", "https://turkcemanga.com", "tr", className = "TurkceManga", overrideVersionCode = 2),

View File

@ -46,6 +46,7 @@ class WPMangaReaderGenerator : ThemeSourceGenerator {
SingleLang("YANP Fansub", "https://yanpfansub.com", "pt-BR", isNsfw = true),
SingleLang("World Romance Translation", "https://wrt.my.id", "id", overrideVersionCode = 6),
SingleLang("Ozul Scans", "https://ozulscans.com", "ar"),
SingleLang("Tsundoku Traduções", "https://tsundokutraducoes.com.br", "pt-BR", className = "TsundokuTraducoes", overrideVersionCode = 8)
)
companion object {