Tachiyomi-Extensions/multisrc/overrides/madara/yetiskinruyamanga/src/YetiskinRuyaManga.kt

31 lines
1.0 KiB
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.yetiskinruyamanga
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 YetiskinRuyaManga : Madara(
"Yetişkin Rüya Manga",
"https://yetiskin.ruyamanga.com",
"tr",
SimpleDateFormat("dd/MM/yyy", Locale("tr"))
) {
override val useNewChapterEndpoint = true
override fun pageListParse(document: Document): List<Page> {
val blocked = document.select(".content-blocked").first()
if (blocked != null) {
/*
* Bu bölümü okuyabilmek için GİRİŞ yapmak zorundasınız.
* Eğer +18 seri'nin VIP bölümündeyseniz okuyabilmek için VIP satın almış olmak zorundasınız.
* VIP SATIN ALMAK VEYA BİLGİ ALMAK İÇİN "VIP & DESTEK" SAYFAMIZI ZİYARET EDİNİZ.
*/
throw Exception(blocked.text())
}
return super.pageListParse(document)
}
}