diff --git a/multisrc/overrides/madara/leviatanscans/src/LeviatanScans.kt b/multisrc/overrides/madara/leviatanscans/src/LeviatanScans.kt index 247bd399c..611cb5e87 100644 --- a/multisrc/overrides/madara/leviatanscans/src/LeviatanScans.kt +++ b/multisrc/overrides/madara/leviatanscans/src/LeviatanScans.kt @@ -1,21 +1,24 @@ -package eu.kanade.tachiyomi.extension.all.leviatanscans +package eu.kanade.tachiyomi.extension.en.leviatanscans import eu.kanade.tachiyomi.multisrc.madara.Madara import eu.kanade.tachiyomi.source.model.SChapter import eu.kanade.tachiyomi.source.model.SManga import org.jsoup.nodes.Element import java.text.SimpleDateFormat +import java.util.Locale -abstract class LeviatanScans( - baseUrl: String, - lang: String, - dateFormat: SimpleDateFormat, -) : Madara( +class LeviatanScans : Madara( "Leviatan Scans", - baseUrl, - lang, - dateFormat, + "https://lscomic.com", + "en", + dateFormat = SimpleDateFormat("MMM dd, yyyy", Locale.US), ) { + + override val id = 4055499394183150749 + + override val mangaDetailsSelectorDescription = "div.manga-summary" + override val mangaDetailsSelectorAuthor = "div.manga-authors" + override val useNewChapterEndpoint: Boolean = true override fun chapterListSelector() = "li.wp-manga-chapter:not(.premium-block)" diff --git a/multisrc/overrides/madara/leviatanscans/src/LeviatanScansFactory.kt b/multisrc/overrides/madara/leviatanscans/src/LeviatanScansFactory.kt deleted file mode 100644 index d110edad1..000000000 --- a/multisrc/overrides/madara/leviatanscans/src/LeviatanScansFactory.kt +++ /dev/null @@ -1,36 +0,0 @@ -package eu.kanade.tachiyomi.extension.all.leviatanscans - -import eu.kanade.tachiyomi.network.interceptor.rateLimit -import eu.kanade.tachiyomi.source.Source -import eu.kanade.tachiyomi.source.SourceFactory -import okhttp3.OkHttpClient -import java.text.SimpleDateFormat -import java.util.Locale - -class LeviatanScansFactory : SourceFactory { - override fun createSources(): List = listOf( - LeviatanScansEN(), - LeviatanScansES(), - ) -} - -class LeviatanScansEN : LeviatanScans( - "https://en.leviatanscans.com", - "en", - SimpleDateFormat("MMM dd, yyyy", Locale.US), -) { - override val client: OkHttpClient = super.client.newBuilder() - .rateLimit(1, 2) - .build() - - override val mangaDetailsSelectorDescription = "div.manga-summary" - override val mangaDetailsSelectorAuthor = "div.manga-authors" -} - -class LeviatanScansES : LeviatanScans( - "https://es.leviatanscans.com", - "es", - SimpleDateFormat("MMM dd, yy", Locale("es")), -) { - override val mangaDetailsSelectorStatus = ".post-content_item:contains(Status) .summary-content" -} diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt index a762bdf4c..a391a38d5 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt @@ -14,7 +14,6 @@ class MadaraGenerator : ThemeSourceGenerator { override val sources = listOf( MultiLang("Atlantis Scan", "https://atlantisscan.com", listOf("es", "pt-BR"), isNsfw = true), - MultiLang("Leviatan Scans", "https://leviatanscans.com", listOf("en", "es"), className = "LeviatanScansFactory", overrideVersionCode = 14), 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", overrideVersionCode = 4), MultiLang("Reaper Scans", "https://reaperscans.com", listOf("fr", "tr"), className = "ReaperScansFactory", pkgName = "reaperscans", overrideVersionCode = 12), @@ -197,6 +196,7 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("Lily Manga", "https://lilymanga.net", "en", isNsfw = true, overrideVersionCode = 3), SingleLang("Lolicon", "https://lolicon.mobi", "en", isNsfw = true, overrideVersionCode = 2), SingleLang("Lord Manga", "https://lordmanga.com", "en"), + SingleLang("Leviatan Scans", "https://lscomic.com", "en", overrideVersionCode = 15), SingleLang("Luffy Manga", "https://luffymanga.com", "en", isNsfw = false), SingleLang("LuxManga", "https://luxmanga.com", "en"), SingleLang("MadaraDex", "https://madaradex.org", "en", isNsfw = true, overrideVersionCode = 1),