Vetle Ledaal 6393c1caf0
Update domain for some sources (#18951)
* update domain src

* update domain madara
2023-11-14 22:12:42 -05:00

33 lines
929 B
Kotlin
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package eu.kanade.tachiyomi.extension.tr.evascans
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 EvaScans : Madara(
"ManWe",
"https://manwe.pro",
"tr",
dateFormat = SimpleDateFormat("MMM d, yyy", Locale("tr")),
) {
override val id = 5223802501310383833
override val useNewChapterEndpoint = true
override fun searchPage(page: Int): String = if (page == 1) "" else "page/$page/"
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
}
}