Add Source LSComic (#17823)
* Add Source LSComic as a replacement for the new Leviatan Scans Site #17782 * Updated original Leviatan Source url and change it to a single language source * Removing LSComic override in favor of updating original source --------- Co-authored-by: dragon-masterk <dragon-masterk@github.com>
This commit is contained in:
parent
8b20ef1eeb
commit
f916f46a60
|
@ -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.multisrc.madara.Madara
|
||||||
import eu.kanade.tachiyomi.source.model.SChapter
|
import eu.kanade.tachiyomi.source.model.SChapter
|
||||||
import eu.kanade.tachiyomi.source.model.SManga
|
import eu.kanade.tachiyomi.source.model.SManga
|
||||||
import org.jsoup.nodes.Element
|
import org.jsoup.nodes.Element
|
||||||
import java.text.SimpleDateFormat
|
import java.text.SimpleDateFormat
|
||||||
|
import java.util.Locale
|
||||||
|
|
||||||
abstract class LeviatanScans(
|
class LeviatanScans : Madara(
|
||||||
baseUrl: String,
|
|
||||||
lang: String,
|
|
||||||
dateFormat: SimpleDateFormat,
|
|
||||||
) : Madara(
|
|
||||||
"Leviatan Scans",
|
"Leviatan Scans",
|
||||||
baseUrl,
|
"https://lscomic.com",
|
||||||
lang,
|
"en",
|
||||||
dateFormat,
|
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 val useNewChapterEndpoint: Boolean = true
|
||||||
|
|
||||||
override fun chapterListSelector() = "li.wp-manga-chapter:not(.premium-block)"
|
override fun chapterListSelector() = "li.wp-manga-chapter:not(.premium-block)"
|
||||||
|
|
|
@ -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<Source> = 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"
|
|
||||||
}
|
|
|
@ -14,7 +14,6 @@ class MadaraGenerator : ThemeSourceGenerator {
|
||||||
|
|
||||||
override val sources = listOf(
|
override val sources = listOf(
|
||||||
MultiLang("Atlantis Scan", "https://atlantisscan.com", listOf("es", "pt-BR"), isNsfw = true),
|
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("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("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),
|
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("Lily Manga", "https://lilymanga.net", "en", isNsfw = true, overrideVersionCode = 3),
|
||||||
SingleLang("Lolicon", "https://lolicon.mobi", "en", isNsfw = true, overrideVersionCode = 2),
|
SingleLang("Lolicon", "https://lolicon.mobi", "en", isNsfw = true, overrideVersionCode = 2),
|
||||||
SingleLang("Lord Manga", "https://lordmanga.com", "en"),
|
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("Luffy Manga", "https://luffymanga.com", "en", isNsfw = false),
|
||||||
SingleLang("LuxManga", "https://luxmanga.com", "en"),
|
SingleLang("LuxManga", "https://luxmanga.com", "en"),
|
||||||
SingleLang("MadaraDex", "https://madaradex.org", "en", isNsfw = true, overrideVersionCode = 1),
|
SingleLang("MadaraDex", "https://madaradex.org", "en", isNsfw = true, overrideVersionCode = 1),
|
||||||
|
|
Loading…
Reference in New Issue