add Rose Squad Scans (#6655)

add rose squad scans
This commit is contained in:
kana-shii 2024-12-19 08:44:28 -03:00 committed by Draff
parent 4f5116c590
commit 0382073769
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
7 changed files with 38 additions and 0 deletions

View File

@ -0,0 +1,10 @@
ext {
extName = 'Rose Squad Scans'
extClass = '.RoseSquadScans'
themePkg = 'madara'
baseUrl = 'https://rosesquadscans.aishiteru.org'
overrideVersionCode = 0
isNsfw = true
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

View File

@ -0,0 +1,28 @@
package eu.kanade.tachiyomi.extension.en.rosesquadscans
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.network.interceptor.rateLimit
import okhttp3.Interceptor
import okhttp3.Response
import java.io.IOException
class RoseSquadScans : Madara("Rose Squad Scans", "https://rosesquadscans.aishiteru.org", "en") {
override val client = super.client.newBuilder()
.addInterceptor(::authWarningIntercept)
.rateLimit(1, 2)
.build()
override val useNewChapterEndpoint = true
private fun authWarningIntercept(chain: Interceptor.Chain): Response {
val response = chain.proceed(chain.request())
if (response.request.url.toString().contains("wp-login.php")) {
response.close()
throw IOException("It's necessary to login via WebView to access this source.")
}
return response
}
}