parent
0f09d40fde
commit
0dc7a9817b
|
@ -3,7 +3,7 @@ ext {
|
|||
extClass = '.Eromanhwa'
|
||||
themePkg = 'madara'
|
||||
baseUrl = 'https://eromanhwa.org'
|
||||
overrideVersionCode = 0
|
||||
overrideVersionCode = 1
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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 |
|
@ -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)
|
||||
}
|
Loading…
Reference in New Issue