KdtScans: update url, filter LNs from search, fix date (#8370)

KdtScans: update url & filter LNs fom search
This commit is contained in:
AwkwardPeak7 2025-04-06 15:11:59 +05:00 committed by Draff
parent e91a361ad8
commit 47d14b6f29
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
2 changed files with 6 additions and 7 deletions

View File

@ -2,8 +2,8 @@ ext {
extName = 'KDT Scans' extName = 'KDT Scans'
extClass = '.KdtScans' extClass = '.KdtScans'
themePkg = 'madara' themePkg = 'madara'
baseUrl = 'https://kdtscans.com' baseUrl = 'https://kdt.akan01.com'
overrideVersionCode = 0 overrideVersionCode = 1
isNsfw = true isNsfw = true
} }

View File

@ -4,14 +4,11 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.model.SManga import eu.kanade.tachiyomi.source.model.SManga
import org.jsoup.nodes.Document import org.jsoup.nodes.Document
import org.jsoup.nodes.Element import org.jsoup.nodes.Element
import java.text.SimpleDateFormat
import java.util.Locale
class KdtScans : Madara( class KdtScans : Madara(
"KDT Scans", "KDT Scans",
"https://kdtscans.com", "https://kdt.akan01.com",
"all", "all",
dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale("es")),
) { ) {
override val useNewChapterEndpoint = true override val useNewChapterEndpoint = true
override val fetchGenres = false 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 { override fun searchMangaFromElement(element: Element): SManga {
return super.searchMangaFromElement(element).apply { return super.searchMangaFromElement(element).apply {
title = title.cleanupTitle() title = title.cleanupTitle()
@ -37,5 +36,5 @@ class KdtScans : Madara(
private fun String.cleanupTitle() = replace(titleCleanupRegex, "").trim() private fun String.cleanupTitle() = replace(titleCleanupRegex, "").trim()
private val titleCleanupRegex = private val titleCleanupRegex =
Regex("""^\[(ESPAÑOL|English)\]\s+(\s+)?""", RegexOption.IGNORE_CASE) Regex("""^\[(ESPAÑOL|English|HD)\]\s+(\s+)?""", RegexOption.IGNORE_CASE)
} }