KdtScans: update url, filter LNs from search, fix date (#8370)
KdtScans: update url & filter LNs fom search
This commit is contained in:
parent
e91a361ad8
commit
47d14b6f29
@ -2,8 +2,8 @@ ext {
|
||||
extName = 'KDT Scans'
|
||||
extClass = '.KdtScans'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://kdtscans.com'
|
||||
overrideVersionCode = 0
|
||||
baseUrl = 'https://kdt.akan01.com'
|
||||
overrideVersionCode = 1
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
@ -4,14 +4,11 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||
import eu.kanade.tachiyomi.source.model.SManga
|
||||
import org.jsoup.nodes.Document
|
||||
import org.jsoup.nodes.Element
|
||||
import java.text.SimpleDateFormat
|
||||
import java.util.Locale
|
||||
|
||||
class KdtScans : Madara(
|
||||
"KDT Scans",
|
||||
"https://kdtscans.com",
|
||||
"https://kdt.akan01.com",
|
||||
"all",
|
||||
dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale("es")),
|
||||
) {
|
||||
override val useNewChapterEndpoint = true
|
||||
override val fetchGenres = false
|
||||
@ -22,6 +19,8 @@ class KdtScans : Madara(
|
||||
}
|
||||
}
|
||||
|
||||
override fun searchMangaSelector() = "div.c-tabs-item__content:not(:contains([LN]))"
|
||||
|
||||
override fun searchMangaFromElement(element: Element): SManga {
|
||||
return super.searchMangaFromElement(element).apply {
|
||||
title = title.cleanupTitle()
|
||||
@ -37,5 +36,5 @@ class KdtScans : Madara(
|
||||
private fun String.cleanupTitle() = replace(titleCleanupRegex, "").trim()
|
||||
|
||||
private val titleCleanupRegex =
|
||||
Regex("""^\[(ESPAÑOL|English)\]\s+(–\s+)?""", RegexOption.IGNORE_CASE)
|
||||
Regex("""^\[(ESPAÑOL|English|HD)\]\s+(–\s+)?""", RegexOption.IGNORE_CASE)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user