parent
5a91a014ca
commit
bd622ff86a
|
@ -0,0 +1,10 @@
|
||||||
|
ext {
|
||||||
|
extName = 'Gölge Bahçesi'
|
||||||
|
extClass = '.GolgeBahcesi'
|
||||||
|
themePkg = 'mangathemesia'
|
||||||
|
baseUrl = 'https://golgebahcesi.com'
|
||||||
|
overrideVersionCode = 0
|
||||||
|
isNsfw = false
|
||||||
|
}
|
||||||
|
|
||||||
|
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: 26 KiB |
Binary file not shown.
After Width: | Height: | Size: 44 KiB |
|
@ -0,0 +1,31 @@
|
||||||
|
package eu.kanade.tachiyomi.extension.tr.golgebahcesi
|
||||||
|
|
||||||
|
import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia
|
||||||
|
import eu.kanade.tachiyomi.source.model.Page
|
||||||
|
import eu.kanade.tachiyomi.source.model.SManga
|
||||||
|
import org.jsoup.nodes.Document
|
||||||
|
import java.text.SimpleDateFormat
|
||||||
|
import java.util.Locale
|
||||||
|
|
||||||
|
class GolgeBahcesi : MangaThemesia(
|
||||||
|
"Gölge Bahçesi",
|
||||||
|
"https://golgebahcesi.com",
|
||||||
|
"tr",
|
||||||
|
dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale("tr")),
|
||||||
|
) {
|
||||||
|
private var captchaUrl: String? = null
|
||||||
|
|
||||||
|
override fun getMangaUrl(manga: SManga): String =
|
||||||
|
captchaUrl?.also { captchaUrl = null }
|
||||||
|
?: super.getMangaUrl(manga)
|
||||||
|
|
||||||
|
override fun pageListParse(document: Document): List<Page> {
|
||||||
|
if (document.selectFirst("#readerarea form, #readerarea input[value=Doğrula]") != null) {
|
||||||
|
captchaUrl = document.selectFirst("#readerarea form")
|
||||||
|
?.attr("abs:action")
|
||||||
|
?: "$baseUrl/kontrol/"
|
||||||
|
throw Exception("WebView'da captcha çözün.")
|
||||||
|
}
|
||||||
|
return super.pageListParse(document)
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue