Add MilaSub (#2696)
This commit is contained in:
parent
df3cdcf1fc
commit
c50d959323
|
@ -0,0 +1,10 @@
|
||||||
|
ext {
|
||||||
|
extName = 'MilaSub'
|
||||||
|
extClass = '.MilaSub'
|
||||||
|
themePkg = 'madara'
|
||||||
|
baseUrl = 'https://www.milasub.co'
|
||||||
|
overrideVersionCode = 0
|
||||||
|
isNsfw = true
|
||||||
|
}
|
||||||
|
|
||||||
|
apply from: "$rootDir/common.gradle"
|
Binary file not shown.
After Width: | Height: | Size: 7.8 KiB |
Binary file not shown.
After Width: | Height: | Size: 3.9 KiB |
Binary file not shown.
After Width: | Height: | Size: 13 KiB |
Binary file not shown.
After Width: | Height: | Size: 27 KiB |
Binary file not shown.
After Width: | Height: | Size: 46 KiB |
|
@ -0,0 +1,29 @@
|
||||||
|
package eu.kanade.tachiyomi.extension.tr.milasub
|
||||||
|
|
||||||
|
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 MilaSub : Madara(
|
||||||
|
"MilaSub",
|
||||||
|
"https://www.milasub.co",
|
||||||
|
"tr",
|
||||||
|
dateFormat = SimpleDateFormat("d MMMM yyyy", Locale("tr")),
|
||||||
|
) {
|
||||||
|
override val useLoadMoreRequest = LoadMoreStrategy.Always
|
||||||
|
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("Inicie sesión en WebView para ver este capítulo")
|
||||||
|
}
|
||||||
|
return pageList
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue