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
This commit is contained in:
Vetle Ledaal 2024-09-27 15:01:34 +02:00 committed by GitHub
parent e21241c602
commit 50628b7da3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 30 additions and 18 deletions

View File

@ -1,9 +1,10 @@
ext {
extName = 'NekoPost.co (unoriginal)'
extClass = '.NekoPostCo'
extName = 'Superdoujin.org'
extClass = '.SuperdoujinOrg'
themePkg = 'madara'
baseUrl = 'https://www.nekopost.co'
overrideVersionCode = 0
baseUrl = 'https://www.superdoujin.org'
overrideVersionCode = 1
isNsfw = true
}
apply from: "$rootDir/common.gradle"

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.1 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.0 KiB

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View File

@ -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
}

View File

@ -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"
}
}
}