Add Domal Fansub (#2727)
This commit is contained in:
parent
71e6e4b10c
commit
713363838a
|
@ -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 |
|
@ -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)
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue