Add Gölge Bahçesi (#3722)

* Add Gölge Bahçesi

* fix PR comment
This commit is contained in:
Vetle Ledaal 2024-06-26 13:27:48 +02:00 committed by Draff
parent 5a91a014ca
commit bd622ff86a
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
7 changed files with 41 additions and 0 deletions

View File

@ -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

View File

@ -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)
}
}