diff --git a/multisrc/overrides/wpcomics/mangatoro/src/MangaToroFactory.kt b/multisrc/overrides/wpcomics/mangatoro/src/MangaToroFactory.kt new file mode 100644 index 000000000..abbc71bb9 --- /dev/null +++ b/multisrc/overrides/wpcomics/mangatoro/src/MangaToroFactory.kt @@ -0,0 +1,16 @@ +package eu.kanade.tachiyomi.extension.all.mangatoro + +import eu.kanade.tachiyomi.multisrc.wpcomics.WPComics +import eu.kanade.tachiyomi.source.Source +import eu.kanade.tachiyomi.source.SourceFactory + +class MangaToroFactory : SourceFactory { + override fun createSources(): List = listOf( + MangaToro(), + MangaToroRAW(), + ) +} + +class MangaToroRAW : WPComics("MangaToro RAW", "https://ja.mangatoro.com", "ja") + +class MangaToro : WPComics("MangaToro", "https://mangatoro.com", "en") diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComicsGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComicsGenerator.kt index ec08b57b2..061513d65 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComicsGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpcomics/WPComicsGenerator.kt @@ -13,7 +13,7 @@ class WPComicsGenerator : ThemeSourceGenerator { override val baseVersionCode: Int = 1 override val sources = listOf( - SingleLang("MangaToro", "https://mangatoro.com", "en"), + MultiLang("MangaToro", "https://mangatoro.com", listOf("en", "ja")), SingleLang("NetTruyen", "https://www.nettruyen.com", "vi", overrideVersionCode = 1), SingleLang("NhatTruyen", "http://nhattruyen.com", "vi", overrideVersionCode = 1), SingleLang("TruyenChon", "http://truyenchon.com", "vi", overrideVersionCode = 1),