Remove PrazeresViolentos (#5065)

This commit is contained in:
Chopper 2024-09-15 04:30:02 -03:00 committed by GitHub
parent 8fdafaf8b8
commit 4b5f52a217
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 0 additions and 47 deletions

View File

@ -1,10 +0,0 @@
ext {
extName = 'Prazeres Violentos'
extClass = '.PrazeresViolentos'
themePkg = 'madara'
baseUrl = 'https://prazeresviolentos.com'
overrideVersionCode = 0
isNsfw = true
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 32 KiB

View File

@ -1,37 +0,0 @@
package eu.kanade.tachiyomi.extension.pt.prazeresviolentos
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import okhttp3.Interceptor
import okhttp3.OkHttpClient
import okhttp3.Response
import java.io.IOException
import java.text.SimpleDateFormat
import java.util.Locale
import java.util.concurrent.TimeUnit
class PrazeresViolentos : Madara(
"Prazeres Violentos",
"https://prazeresviolentos.com",
"pt-BR",
SimpleDateFormat("MMMM dd, yyyy", Locale("pt", "BR")),
) {
override val client: OkHttpClient = super.client.newBuilder()
.rateLimit(1, 2, TimeUnit.SECONDS)
.addInterceptor(::checkPasswordProtectedIntercept)
.build()
private fun checkPasswordProtectedIntercept(chain: Interceptor.Chain): Response {
val response = chain.proceed(chain.request())
if (response.request.url.queryParameter("password-protected") != null) {
response.close()
throw IOException("Autentique-se através da WebView e tente novamente.")
}
return response
}
override val useNewChapterEndpoint = true
}