Add Luna Scans (#2749)
This commit is contained in:
parent
0d7c58d326
commit
325ec1421c
|
@ -0,0 +1,10 @@
|
||||||
|
ext {
|
||||||
|
extName = 'Luna Scans'
|
||||||
|
extClass = '.LunaScans'
|
||||||
|
themePkg = 'madara'
|
||||||
|
baseUrl = 'https://lunascans.fun'
|
||||||
|
overrideVersionCode = 0
|
||||||
|
isNsfw = true
|
||||||
|
}
|
||||||
|
|
||||||
|
apply from: "$rootDir/common.gradle"
|
Binary file not shown.
After Width: | Height: | Size: 7.7 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
Binary file not shown.
After Width: | Height: | Size: 12 KiB |
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
Binary file not shown.
After Width: | Height: | Size: 45 KiB |
|
@ -0,0 +1,29 @@
|
||||||
|
package eu.kanade.tachiyomi.extension.tr.lunascans
|
||||||
|
|
||||||
|
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 LunaScans : Madara(
|
||||||
|
"Luna Scans",
|
||||||
|
"https://lunascans.fun",
|
||||||
|
"tr",
|
||||||
|
dateFormat = SimpleDateFormat("d MMMM yyyy", Locale("tr")),
|
||||||
|
) {
|
||||||
|
override val useLoadMoreRequest = LoadMoreStrategy.Always
|
||||||
|
override val useNewChapterEndpoint = false
|
||||||
|
|
||||||
|
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…
Reference in New Issue