mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-25 11:42:47 +01:00
Add OtaScans (#3280)
This commit is contained in:
parent
c16a02dcf3
commit
476890da4b
10
src/id/otascans/build.gradle
Normal file
10
src/id/otascans/build.gradle
Normal file
@ -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"
|
BIN
src/id/otascans/res/mipmap-hdpi/ic_launcher.png
Normal file
BIN
src/id/otascans/res/mipmap-hdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.2 KiB |
BIN
src/id/otascans/res/mipmap-mdpi/ic_launcher.png
Normal file
BIN
src/id/otascans/res/mipmap-mdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.6 KiB |
BIN
src/id/otascans/res/mipmap-xhdpi/ic_launcher.png
Normal file
BIN
src/id/otascans/res/mipmap-xhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
src/id/otascans/res/mipmap-xxhdpi/ic_launcher.png
Normal file
BIN
src/id/otascans/res/mipmap-xxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
BIN
src/id/otascans/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
BIN
src/id/otascans/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 39 KiB |
@ -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<Page> {
|
||||
return super.pageListParse(document).takeIf { it.isNotEmpty() }
|
||||
?: throw Exception("Maybe this content needs a password. Open in WebView")
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user