Skip to content

Commit

Permalink
add Rose Squad Scans (#6655)
Browse files Browse the repository at this point in the history
add rose squad scans
  • Loading branch information
kana-shii authored Dec 19, 2024
1 parent 2ff36b4 commit a8a30c4
Show file tree
Hide file tree
Showing 7 changed files with 38 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/en/rosesquadscans/build.gradle
Original file line number Diff line number Diff line change
@@ -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"
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
@@ -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
}
}

0 comments on commit a8a30c4

Please sign in to comment.