Add Sarcasm Scans (#2722)
This commit is contained in:
parent
4058612bca
commit
e93b41ce7f
10
src/tr/sarcasmscans/build.gradle
Normal file
10
src/tr/sarcasmscans/build.gradle
Normal file
@ -0,0 +1,10 @@
|
||||
ext {
|
||||
extName = 'Sarcasm Scans'
|
||||
extClass = '.SarcasmScans'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://sarcasmscans.com'
|
||||
overrideVersionCode = 0
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
apply from: "$rootDir/common.gradle"
|
BIN
src/tr/sarcasmscans/res/mipmap-hdpi/ic_launcher.png
Normal file
BIN
src/tr/sarcasmscans/res/mipmap-hdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 7.5 KiB |
BIN
src/tr/sarcasmscans/res/mipmap-mdpi/ic_launcher.png
Normal file
BIN
src/tr/sarcasmscans/res/mipmap-mdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.7 KiB |
BIN
src/tr/sarcasmscans/res/mipmap-xhdpi/ic_launcher.png
Normal file
BIN
src/tr/sarcasmscans/res/mipmap-xhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
BIN
src/tr/sarcasmscans/res/mipmap-xxhdpi/ic_launcher.png
Normal file
BIN
src/tr/sarcasmscans/res/mipmap-xxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
BIN
src/tr/sarcasmscans/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
BIN
src/tr/sarcasmscans/res/mipmap-xxxhdpi/ic_launcher.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 45 KiB |
@ -0,0 +1,29 @@
|
||||
package eu.kanade.tachiyomi.extension.tr.sarcasmscans
|
||||
|
||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import eu.kanade.tachiyomi.source.model.Page
|
||||
import org.jsoup.nodes.Document
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
class SarcasmScans : Madara(
|
||||
"Sarcasm Scans",
|
||||
"https://sarcasmscans.com",
|
||||
"tr",
|
||||
dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale("tr")),
|
||||
) {
|
||||
override val useLoadMoreRequest = LoadMoreStrategy.Never
|
||||
override val useNewChapterEndpoint = true
|
||||
|
||||
override fun pageListParse(document: Document): List<Page> {
|
||||
val pageList = super.pageListParse(document)
|
||||
|
||||
if (
|
||||
pageList.isEmpty() &&
|
||||
document.select(".content-blocked, .login-required").isNotEmpty()
|
||||
) {
|
||||
throw Exception("Okumak için WebView üzerinden giriş yapın")
|
||||
}
|
||||
return pageList
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user