Add Hoi Fansub (#2725)
This commit is contained in:
parent
caab4716b4
commit
0fd72be73b
|
@ -0,0 +1,10 @@
|
||||||
|
ext {
|
||||||
|
extName = 'Hoi Fansub'
|
||||||
|
extClass = '.HoiFansub'
|
||||||
|
themePkg = 'madara'
|
||||||
|
baseUrl = 'https://hoifansub.com'
|
||||||
|
overrideVersionCode = 0
|
||||||
|
isNsfw = true
|
||||||
|
}
|
||||||
|
|
||||||
|
apply from: "$rootDir/common.gradle"
|
Binary file not shown.
After Width: | Height: | Size: 8.5 KiB |
Binary file not shown.
After Width: | Height: | Size: 4.1 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: 51 KiB |
|
@ -0,0 +1,29 @@
|
||||||
|
package eu.kanade.tachiyomi.extension.tr.hoifansub
|
||||||
|
|
||||||
|
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 HoiFansub : Madara(
|
||||||
|
"Hoi Fansub",
|
||||||
|
"https://hoifansub.com",
|
||||||
|
"tr",
|
||||||
|
dateFormat = SimpleDateFormat("MMMM d, yyyy", Locale("tr")),
|
||||||
|
) {
|
||||||
|
override val useLoadMoreRequest = LoadMoreStrategy.Never
|
||||||
|
override val useNewChapterEndpoint = true
|
||||||
|
|
||||||
|
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
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue