Add Kuroi Manga (#2723)

This commit is contained in:
Vetle Ledaal 2024-05-02 00:57:15 +00:00 committed by Draff
parent e93b41ce7f
commit caab4716b4
7 changed files with 39 additions and 0 deletions

View File

@ -0,0 +1,10 @@
ext {
extName = 'Kuroi Manga'
extClass = '.KuroiManga'
themePkg = 'madara'
baseUrl = 'https://kuroimanga.com'
overrideVersionCode = 0
isNsfw = true
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 KiB

View File

@ -0,0 +1,29 @@
package eu.kanade.tachiyomi.extension.tr.kuroimanga
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 KuroiManga : Madara(
"Kuroi Manga",
"https://kuroimanga.com",
"tr",
dateFormat = SimpleDateFormat("d MMMM 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("Bu seriyi okumak için abone olmalısınız")
}
return pageList
}
}