* new source: KDT Scans

* chnage lang of eromanhwa
This commit is contained in:
AwkwardPeak7 2024-08-17 09:56:19 +05:00 committed by Draff
parent 0f09d40fde
commit 0dc7a9817b
No known key found for this signature in database
GPG Key ID: E8A89F3211677653
9 changed files with 53 additions and 2 deletions

View File

@ -3,7 +3,7 @@ ext {
extClass = '.Eromanhwa'
themePkg = 'madara'
baseUrl = 'https://eromanhwa.org'
overrideVersionCode = 0
overrideVersionCode = 1
isNsfw = true
}

View File

@ -5,7 +5,8 @@ import eu.kanade.tachiyomi.multisrc.madara.Madara
class Eromanhwa : Madara(
"Eromanhwa",
"https://eromanhwa.org",
"en",
"all",
) {
override val id = 3597355706480775153 // accidently set lang to en...
override val useNewChapterEndpoint = true
}

View File

@ -0,0 +1,9 @@
ext {
extName = 'KDT Scans'
extClass = '.KdtScans'
themePkg = 'madara'
baseUrl = 'https://kdtscans.com'
overrideVersionCode = 0
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

View File

@ -0,0 +1,41 @@
package eu.kanade.tachiyomi.extension.all.kdtscans
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",
"all",
dateFormat = SimpleDateFormat("MMMM dd, yyyy", Locale("es")),
) {
override val useNewChapterEndpoint = true
override val fetchGenres = false
override fun popularMangaFromElement(element: Element): SManga {
return super.popularMangaFromElement(element).apply {
title = title.cleanupTitle()
}
}
override fun searchMangaFromElement(element: Element): SManga {
return super.searchMangaFromElement(element).apply {
title = title.cleanupTitle()
}
}
override fun mangaDetailsParse(document: Document): SManga {
return super.mangaDetailsParse(document).apply {
title = title.cleanupTitle()
}
}
private fun String.cleanupTitle() = replace(titleCleanupRegex, "").trim()
private val titleCleanupRegex =
Regex("""^\[(ESPAÑOL|English)\]\s+(\s+)?""", RegexOption.IGNORE_CASE)
}