Add Domal Fansub (#2727)

This commit is contained in:
Vetle Ledaal 2024-05-02 01:01:22 +00:00 committed by Draff
parent 71e6e4b10c
commit 713363838a
7 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,10 @@
ext {
extName = 'Domal Fansub'
extClass = '.DomalFansub'
themePkg = 'madara'
baseUrl = 'https://domalfansub.com.tr'
overrideVersionCode = 0
isNsfw = true
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

View File

@ -0,0 +1,42 @@
package eu.kanade.tachiyomi.extension.tr.domalfansub
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.model.Page
import eu.kanade.tachiyomi.source.model.SChapter
import eu.kanade.tachiyomi.source.model.SManga
import okhttp3.Response
import java.text.SimpleDateFormat
import java.util.Locale
class DomalFansub : Madara(
"Domal Fansub",
"https://domalfansub.com.tr",
"tr",
dateFormat = SimpleDateFormat("d MMMM yyyy", Locale("tr")),
) {
override val mangaDetailsSelectorStatus = "div.summary-heading:contains(Durum) + div.summary-content"
override val useLoadMoreRequest = LoadMoreStrategy.Never
override val useNewChapterEndpoint = true
override fun mangaDetailsParse(response: Response): SManga {
if (response.request.url.pathSegments.getOrNull(0) == "giris-korumasi") {
throw Exception("Okumak için WebView üzerinden giriş yapın")
}
return super.mangaDetailsParse(response)
}
override fun chapterListParse(response: Response): List<SChapter> {
if (response.request.url.pathSegments.getOrNull(0) == "giris-korumasi") {
throw Exception("Okumak için WebView üzerinden giriş yapın")
}
return super.chapterListParse(response)
}
override fun pageListParse(response: Response): List<Page> {
if (response.request.url.pathSegments.getOrNull(0) == "giris-korumasi") {
throw Exception("Okumak için WebView üzerinden giriş yapın")
}
return super.pageListParse(response)
}
}