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

@ -36,12 +36,12 @@ open class FlameScans(
mangaUrlDirectory: String,
dateFormat: SimpleDateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale.US)
) : WPMangaReader(
"Flame Scans",
baseUrl,
lang,
mangaUrlDirectory = mangaUrlDirectory,
dateFormat = dateFormat
),
"Flame Scans",
baseUrl,
lang,
mangaUrlDirectory = mangaUrlDirectory,
dateFormat = dateFormat
),
ConfigurableSource {
private val preferences: SharedPreferences by lazy {

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

@ -23,11 +23,11 @@ open class AsuraScans(
override val lang: String,
dateFormat: SimpleDateFormat
) : WPMangaStream(
"Asura Scans",
baseUrl,
lang,
dateFormat
),
"Asura Scans",
baseUrl,
lang,
dateFormat
),
ConfigurableSource {
private val preferences: SharedPreferences by lazy {

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),
@ -414,7 +413,7 @@ class MadaraGenerator : ThemeSourceGenerator {
SingleLang("War Queen Scan", "https://wqscan.com", "pt-BR", overrideVersionCode = 6),
SingleLang("WebNovel", "https://webnovel.live", "en", className = "WebNovelLive", overrideVersionCode = 3),
SingleLang("WebToon18", "http://webtoon18.net", "en", isNsfw = true, overrideVersionCode = 2),
SingleLang("WebToon69", "https://webtoon69.com", "en", isNsfw = true, overrideVersionCode =1),
SingleLang("WebToon69", "https://webtoon69.com", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("WebToonily", "https://webtoonily.com", "en", isNsfw = true, overrideVersionCode = 1),
SingleLang("Webtoon Hatti", "https://webtoonhatti.com", "tr", overrideVersionCode = 1),
SingleLang("WebtoonScan", "https://webtoonscan.com", "en", isNsfw = true),

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 {