NekoPost.co (unoriginal) -> Superdoujin.org: update domain (#5205)
* NekoPost.co (unoriginal) -> Superdoujin.org: update domain * set static chapter name if there's only 1 chapter
|
@ -1,9 +1,10 @@
|
||||||
ext {
|
ext {
|
||||||
extName = 'NekoPost.co (unoriginal)'
|
extName = 'Superdoujin.org'
|
||||||
extClass = '.NekoPostCo'
|
extClass = '.SuperdoujinOrg'
|
||||||
themePkg = 'madara'
|
themePkg = 'madara'
|
||||||
baseUrl = 'https://www.nekopost.co'
|
baseUrl = 'https://www.superdoujin.org'
|
||||||
overrideVersionCode = 0
|
overrideVersionCode = 1
|
||||||
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
apply from: "$rootDir/common.gradle"
|
apply from: "$rootDir/common.gradle"
|
||||||
|
|
Before Width: | Height: | Size: 5.1 KiB After Width: | Height: | Size: 7.9 KiB |
Before Width: | Height: | Size: 2.7 KiB After Width: | Height: | Size: 3.8 KiB |
Before Width: | Height: | Size: 8.0 KiB After Width: | Height: | Size: 13 KiB |
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 27 KiB |
Before Width: | Height: | Size: 25 KiB After Width: | Height: | Size: 46 KiB |
|
@ -1,14 +0,0 @@
|
||||||
package eu.kanade.tachiyomi.extension.th.nekopostco
|
|
||||||
|
|
||||||
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
|
||||||
import java.text.SimpleDateFormat
|
|
||||||
import java.util.Locale
|
|
||||||
|
|
||||||
class NekoPostCo : Madara(
|
|
||||||
"NekoPost.co (unoriginal)",
|
|
||||||
"https://www.nekopost.co",
|
|
||||||
"th",
|
|
||||||
dateFormat = SimpleDateFormat("d MMMM yyyy", Locale("th")),
|
|
||||||
) {
|
|
||||||
override val useNewChapterEndpoint = false
|
|
||||||
}
|
|
|
@ -0,0 +1,25 @@
|
||||||
|
package eu.kanade.tachiyomi.extension.th.nekopostco
|
||||||
|
|
||||||
|
import eu.kanade.tachiyomi.multisrc.madara.Madara
|
||||||
|
import eu.kanade.tachiyomi.source.model.SChapter
|
||||||
|
import okhttp3.Response
|
||||||
|
import java.text.SimpleDateFormat
|
||||||
|
import java.util.Locale
|
||||||
|
|
||||||
|
class SuperdoujinOrg : Madara(
|
||||||
|
"Superdoujin.org",
|
||||||
|
"https://www.superdoujin.org",
|
||||||
|
"th",
|
||||||
|
dateFormat = SimpleDateFormat("dd/MM/yyyy", Locale.ROOT),
|
||||||
|
) {
|
||||||
|
override val mangaSubString = "doujin"
|
||||||
|
|
||||||
|
override val useLoadMoreRequest = LoadMoreStrategy.Never
|
||||||
|
override val useNewChapterEndpoint = false
|
||||||
|
|
||||||
|
override fun chapterListParse(response: Response): List<SChapter> {
|
||||||
|
return super.chapterListParse(response).also { chapters ->
|
||||||
|
if (chapters.size == 1) chapters[0].name = "Chapter"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|