Remove MangasChan (#3545)

This commit is contained in:
Chopper 2024-06-14 04:28:03 -03:00 committed by GitHub
parent c7659f0562
commit 94eac196e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 0 additions and 51 deletions

View File

@ -1,9 +0,0 @@
ext {
extName = 'Mangás Chan'
extClass = '.MangasChan'
themePkg = 'mangathemesia'
baseUrl = 'https://mangaschan.net'
overrideVersionCode = 3
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 30 KiB

View File

@ -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()
}
}