diff --git a/src/pt/mangaschan/build.gradle b/src/pt/mangaschan/build.gradle deleted file mode 100644 index 7ad6967bd..000000000 --- a/src/pt/mangaschan/build.gradle +++ /dev/null @@ -1,9 +0,0 @@ -ext { - extName = 'Mangás Chan' - extClass = '.MangasChan' - themePkg = 'mangathemesia' - baseUrl = 'https://mangaschan.net' - overrideVersionCode = 3 -} - -apply from: "$rootDir/common.gradle" diff --git a/src/pt/mangaschan/res/mipmap-hdpi/ic_launcher.png b/src/pt/mangaschan/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index e0635094b..000000000 Binary files a/src/pt/mangaschan/res/mipmap-hdpi/ic_launcher.png and /dev/null differ diff --git a/src/pt/mangaschan/res/mipmap-mdpi/ic_launcher.png b/src/pt/mangaschan/res/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index f1499018f..000000000 Binary files a/src/pt/mangaschan/res/mipmap-mdpi/ic_launcher.png and /dev/null differ diff --git a/src/pt/mangaschan/res/mipmap-xhdpi/ic_launcher.png b/src/pt/mangaschan/res/mipmap-xhdpi/ic_launcher.png deleted file mode 100644 index d5172cf1a..000000000 Binary files a/src/pt/mangaschan/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ diff --git a/src/pt/mangaschan/res/mipmap-xxhdpi/ic_launcher.png b/src/pt/mangaschan/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index 62d424c73..000000000 Binary files a/src/pt/mangaschan/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/src/pt/mangaschan/res/mipmap-xxxhdpi/ic_launcher.png b/src/pt/mangaschan/res/mipmap-xxxhdpi/ic_launcher.png deleted file mode 100644 index 960138b18..000000000 Binary files a/src/pt/mangaschan/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ diff --git a/src/pt/mangaschan/src/eu/kanade/tachiyomi/extension/pt/mangaschan/MangasChan.kt b/src/pt/mangaschan/src/eu/kanade/tachiyomi/extension/pt/mangaschan/MangasChan.kt deleted file mode 100644 index fc801bc76..000000000 --- a/src/pt/mangaschan/src/eu/kanade/tachiyomi/extension/pt/mangaschan/MangasChan.kt +++ /dev/null @@ -1,42 +0,0 @@ -package eu.kanade.tachiyomi.extension.pt.mangaschan - -import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia -import eu.kanade.tachiyomi.network.interceptor.rateLimit -import okhttp3.OkHttpClient -import java.text.SimpleDateFormat -import java.util.Locale -import java.util.concurrent.TimeUnit - -class MangasChan : MangaThemesia( - "Mangás Chan", - "https://mangaschan.net", - "pt-BR", - dateFormat = SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR")), -) { - - override val client: OkHttpClient = super.client.newBuilder() - .addInterceptor { chain -> - val request = chain.request() - val headers = request.headers.newBuilder() - .removeAll("X-Requested-With") - .build() - - chain.proceed(request.newBuilder().headers(headers).build()) - } - .rateLimit(1, 2, TimeUnit.SECONDS) - .build() - - override fun headersBuilder() = super.headersBuilder() - .set("X-Requested-With", randomString((10..20).random())) - - override val altNamePrefix = "Nomes alternativos: " - - override val seriesArtistSelector = ".tsinfo .imptdt:contains(Artista) > i" - override val seriesAuthorSelector = ".tsinfo .imptdt:contains(Autor) > i" - override val seriesTypeSelector = ".tsinfo .imptdt:contains(Tipo) > a" - - private fun randomString(length: Int): String { - val charPool = ('a'..'z') + ('A'..'Z') - return CharArray(length) { charPool.random() }.concatToString() - } -}