diff --git a/src/id/otascans/build.gradle b/src/id/otascans/build.gradle new file mode 100644 index 000000000..1afab8d66 --- /dev/null +++ b/src/id/otascans/build.gradle @@ -0,0 +1,10 @@ +ext { + extName = 'Ota Scans' + extClass = '.OtaScans' + themePkg = 'mangathemesia' + baseUrl = 'https://yurilab.my.id' + overrideVersionCode = 0 + isNsfw = true +} + +apply from: "$rootDir/common.gradle" diff --git a/src/id/otascans/res/mipmap-hdpi/ic_launcher.png b/src/id/otascans/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..8b5a8aa58 Binary files /dev/null and b/src/id/otascans/res/mipmap-hdpi/ic_launcher.png differ diff --git a/src/id/otascans/res/mipmap-mdpi/ic_launcher.png b/src/id/otascans/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..83d3e5334 Binary files /dev/null and b/src/id/otascans/res/mipmap-mdpi/ic_launcher.png differ diff --git a/src/id/otascans/res/mipmap-xhdpi/ic_launcher.png b/src/id/otascans/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..cf0c5741b Binary files /dev/null and b/src/id/otascans/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/src/id/otascans/res/mipmap-xxhdpi/ic_launcher.png b/src/id/otascans/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..57d326b78 Binary files /dev/null and b/src/id/otascans/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/src/id/otascans/res/mipmap-xxxhdpi/ic_launcher.png b/src/id/otascans/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..6b8fbee74 Binary files /dev/null and b/src/id/otascans/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/src/id/otascans/src/eu/kanade/tachiyomi/extension/id/otascans/OtaScans.kt b/src/id/otascans/src/eu/kanade/tachiyomi/extension/id/otascans/OtaScans.kt new file mode 100644 index 000000000..04c1d135a --- /dev/null +++ b/src/id/otascans/src/eu/kanade/tachiyomi/extension/id/otascans/OtaScans.kt @@ -0,0 +1,21 @@ +package eu.kanade.tachiyomi.extension.id.otascans + +import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia +import eu.kanade.tachiyomi.network.interceptor.rateLimit +import eu.kanade.tachiyomi.source.model.Page +import org.jsoup.nodes.Document + +class OtaScans : MangaThemesia( + "Ota Scans", + "https://yurilab.my.id", + "id", +) { + override val client = super.client.newBuilder() + .rateLimit(2) + .build() + + override fun pageListParse(document: Document): List { + return super.pageListParse(document).takeIf { it.isNotEmpty() } + ?: throw Exception("Maybe this content needs a password. Open in WebView") + } +}