Add Nivera Fansub (#2729)

This commit is contained in:
Vetle Ledaal 2024-05-02 01:02:18 +00:00 committed by Draff
parent 622146d821
commit 4fa0b2b320
7 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,10 @@
ext {
extName = 'Nivera Fansub'
extClass = '.NiveraFansub'
themePkg = 'madara'
baseUrl = 'https://niverafansub.co'
overrideVersionCode = 0
isNsfw = true
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 30 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 50 KiB

View File

@ -0,0 +1,31 @@
package eu.kanade.tachiyomi.extension.tr.niverafansub
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 NiveraFansub : Madara(
"Nivera Fansub",
"https://niverafansub.co",
"tr",
dateFormat = SimpleDateFormat("d MMMM yyyy", Locale("tr")),
) {
override val chapterUrlSelector = "li > a"
override val useLoadMoreRequest = LoadMoreStrategy.Never
override val useNewChapterEndpoint = false
override fun pageListParse(document: Document): List<Page> {
val pageList = super.pageListParse(document)
if (
pageList.isEmpty() &&
document.select(".content-blocked, .login-required").isNotEmpty()
) {
throw Exception("Okumak için WebView üzerinden giriş yapın")
}
return pageList
}
}