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"
|
||||
}
|
|
@ -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 {
|
||||
|
|
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))"
|
||||
}
|
|
@ -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 {
|
||||
|
|
|
@ -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),
|
||||
|
|
|
@ -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 {
|
||||
|
|