diff --git a/multisrc/overrides/mangathemesia/komiklab/src/KomikLab.kt b/multisrc/overrides/mangathemesia/komiklab/src/KomikLab.kt deleted file mode 100644 index 27e6701ba..000000000 --- a/multisrc/overrides/mangathemesia/komiklab/src/KomikLab.kt +++ /dev/null @@ -1,9 +0,0 @@ -package eu.kanade.tachiyomi.extension.id.komiklab - -import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia - -class KomikLab : MangaThemesia("Komik Lab", "https://komiklab.com", "id") { - override val hasProjectPage = true - - override val seriesDetailsSelector = ".seriestucon" -} diff --git a/multisrc/overrides/mangathemesia/komiklab/src/KomikLabFactory.kt b/multisrc/overrides/mangathemesia/komiklab/src/KomikLabFactory.kt new file mode 100644 index 000000000..56f4413a0 --- /dev/null +++ b/multisrc/overrides/mangathemesia/komiklab/src/KomikLabFactory.kt @@ -0,0 +1,21 @@ +package eu.kanade.tachiyomi.extension.all.komiklab + +import eu.kanade.tachiyomi.multisrc.mangathemesia.MangaThemesia +import eu.kanade.tachiyomi.source.SourceFactory + +class KomikLabFactory : SourceFactory { + override fun createSources() = listOf( + KomikLabEn(), + KomikLabId() + ) +} + +class KomikLabEn : MangaThemesia("KomikLab Scans", "https://scans.komiklab.com", "en") { + override val hasProjectPage = true +} + +class KomikLabId : MangaThemesia("Komik Lab", "https://komiklab.com", "id") { + override val hasProjectPage = true + + override val seriesDetailsSelector = ".seriestucon" +} diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt index ea3a13dac..a7d9ec5e3 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/mangathemesia/MangaThemesiaGenerator.kt @@ -15,6 +15,7 @@ class MangaThemesiaGenerator : ThemeSourceGenerator { override val sources = listOf( MultiLang("Asura Scans", "https://www.asurascans.com", listOf("en", "tr"), className = "AsuraScansFactory", pkgName = "asurascans", overrideVersionCode = 16), MultiLang("Flame Scans", "https://flamescans.org", listOf("ar", "en"), className = "FlameScansFactory", pkgName = "flamescans", overrideVersionCode = 1), + MultiLang("Komik Lab", "https://komiklab.com", listOf("en", "id"), className = "KomikLabFactory", pkgName = "komiklab", overrideVersionCode = 1), SingleLang("Ace Scans", "https://acescans.xyz", "en", isNsfw = true, overrideVersionCode = 2), SingleLang("Alpha Scans", "https://alpha-scans.org", "en", overrideVersionCode = 1), SingleLang("Animated Glitched Scans", "https://anigliscans.com", "en"), @@ -40,7 +41,6 @@ class MangaThemesiaGenerator : ThemeSourceGenerator { SingleLang("KlanKomik", "https://klankomik.com", "id", overrideVersionCode = 1), SingleLang("Komik AV", "https://komikav.com", "id", overrideVersionCode = 1), SingleLang("Komik Cast", "https://komikcast.me", "id", overrideVersionCode = 13), - SingleLang("Komik Lab", "https://komiklab.com", "id"), SingleLang("Komik Station", "https://komikstation.co", "id", overrideVersionCode = 3), SingleLang("KomikIndo.co", "https://komikindo.co", "id", className = "KomikindoCo", overrideVersionCode = 3), SingleLang("KomikMama", "https://komikmama.co", "id", overrideVersionCode = 1),