Add support for mangas with seasons (#7878)

Use chapter name as chapter number
This commit is contained in:
Myst 2021-06-25 21:21:11 +02:00 committed by GitHub
parent 0137f71652
commit 28b165f6df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -3,6 +3,8 @@ package eu.kanade.tachiyomi.extension.all.leviatanscans
import eu.kanade.tachiyomi.multisrc.madara.Madara
import eu.kanade.tachiyomi.source.Source
import eu.kanade.tachiyomi.source.SourceFactory
import eu.kanade.tachiyomi.source.model.SChapter
import okhttp3.Response
class LeviatanScansFactory : SourceFactory {
override fun createSources(): List<Source> = listOf(
@ -10,5 +12,7 @@ class LeviatanScansFactory : SourceFactory {
LeviatanScansES(),
)
}
class LeviatanScansEN : Madara("Leviatan Scans", "https://leviatanscans.com", "en")
class LeviatanScansEN : Madara("Leviatan Scans", "https://leviatanscans.com", "en") {
override fun chapterListParse(response: Response): List<SChapter> = super.chapterListParse(response).sortedBy { it.name.toInt() }.reversed()
}
class LeviatanScansES : Madara("Leviatan Scans", "https://es.leviatanscans.com", "es")

View File

@ -13,7 +13,7 @@ class MadaraGenerator : ThemeSourceGenerator {
override val baseVersionCode: Int = 7
override val sources = listOf(
MultiLang("Leviatan Scans", "https://leviatanscans.com", listOf("en", "es"), className = "LeviatanScansFactory", overrideVersionCode = 4),
MultiLang("Leviatan Scans", "https://leviatanscans.com", listOf("en", "es"), className = "LeviatanScansFactory", overrideVersionCode = 5),
MultiLang("MangaForFree.net", "https://mangaforfree.net", listOf("en", "ko", "all") , isNsfw = true, className = "MangaForFreeFactory", pkgName = "mangaforfree", overrideVersionCode = 1),
MultiLang("Manhwa18.cc", "https://manhwa18.cc", listOf("en", "ko", "all"), isNsfw = true, className = "Manhwa18CcFactory", pkgName = "manhwa18cc"),
SingleLang("1st Kiss Manga.love", "https://1stkissmanga.love", "en", className = "FirstKissMangaLove"),