Move TT from Madara to WpMangaReader. (#10400)
|
@ -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"
|
||||
}
|
Before Width: | Height: | Size: 7.5 KiB After Width: | Height: | Size: 7.5 KiB |
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.7 KiB |
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 23 KiB After Width: | Height: | Size: 23 KiB |
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 35 KiB |
Before Width: | Height: | Size: 212 KiB After Width: | Height: | Size: 212 KiB |
|
@ -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))"
|
||||
}
|
|
@ -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),
|
||||
|
|
|
@ -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 {
|
||||
|
|