extensions-source/multisrc/overrides/madara/hattorimanga/src/HattoriManga.kt
2024-01-09 05:29:54 +06:00

24 lines
710 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.hattorimanga
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 HattoriManga : Madara(
"Hattori Manga",
"https://hattorimanga.com",
"tr",
SimpleDateFormat("d MMM yyy", Locale("tr")),
) {
override fun pageListParse(document: Document): List<Page> {
val blocked = document.select(".content-blocked").first()
if (blocked != null) {
throw Exception(blocked.text()) // Bu bölümü okumak için Üye olmanız gerekiyor.
}
return super.pageListParse(document)
}
}