diff --git a/src/en/rosesquadscans/build.gradle b/src/en/rosesquadscans/build.gradle new file mode 100644 index 000000000..d59df2b5e --- /dev/null +++ b/src/en/rosesquadscans/build.gradle @@ -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" diff --git a/src/en/rosesquadscans/res/mipmap-hdpi/ic_launcher.png b/src/en/rosesquadscans/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..351f423ed Binary files /dev/null and b/src/en/rosesquadscans/res/mipmap-hdpi/ic_launcher.png differ diff --git a/src/en/rosesquadscans/res/mipmap-mdpi/ic_launcher.png b/src/en/rosesquadscans/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..ff0b4c216 Binary files /dev/null and b/src/en/rosesquadscans/res/mipmap-mdpi/ic_launcher.png differ diff --git a/src/en/rosesquadscans/res/mipmap-xhdpi/ic_launcher.png b/src/en/rosesquadscans/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..6ac3931e7 Binary files /dev/null and b/src/en/rosesquadscans/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/src/en/rosesquadscans/res/mipmap-xxhdpi/ic_launcher.png b/src/en/rosesquadscans/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..a7da82c0c Binary files /dev/null and b/src/en/rosesquadscans/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/src/en/rosesquadscans/res/mipmap-xxxhdpi/ic_launcher.png b/src/en/rosesquadscans/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..ad3004229 Binary files /dev/null and b/src/en/rosesquadscans/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/src/en/rosesquadscans/src/eu/kanade/tachiyomi/extension/en/rosesquadscans/RoseSquadScans.kt b/src/en/rosesquadscans/src/eu/kanade/tachiyomi/extension/en/rosesquadscans/RoseSquadScans.kt new file mode 100644 index 000000000..6d9c3a7c8 --- /dev/null +++ b/src/en/rosesquadscans/src/eu/kanade/tachiyomi/extension/en/rosesquadscans/RoseSquadScans.kt @@ -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 + } +}