From 030a972da0ffc3f9b3ee0855e4e33ea6e25ee54a Mon Sep 17 00:00:00 2001 From: Narin Date: Mon, 21 Jun 2021 08:48:32 -0700 Subject: [PATCH] Add back Japanese subdomain (#7794) --- .../wpcomics/mangatoro/src/MangaToroFactory.kt | 16 ++++++++++++++++ .../multisrc/wpcomics/WPComicsGenerator.kt | 2 +- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 multisrc/overrides/wpcomics/mangatoro/src/MangaToroFactory.kt 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),