diff --git a/multisrc/overrides/heancms/omegascans/res/mipmap-hdpi/ic_launcher.png b/multisrc/overrides/heancms/omegascans/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..cb37e8e28 Binary files /dev/null and b/multisrc/overrides/heancms/omegascans/res/mipmap-hdpi/ic_launcher.png differ diff --git a/multisrc/overrides/heancms/omegascans/res/mipmap-mdpi/ic_launcher.png b/multisrc/overrides/heancms/omegascans/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..9b7ca6c59 Binary files /dev/null and b/multisrc/overrides/heancms/omegascans/res/mipmap-mdpi/ic_launcher.png differ diff --git a/multisrc/overrides/heancms/omegascans/res/mipmap-xhdpi/ic_launcher.png b/multisrc/overrides/heancms/omegascans/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..6d3e8517e Binary files /dev/null and b/multisrc/overrides/heancms/omegascans/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/multisrc/overrides/heancms/omegascans/res/mipmap-xxhdpi/ic_launcher.png b/multisrc/overrides/heancms/omegascans/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..2967a8309 Binary files /dev/null and b/multisrc/overrides/heancms/omegascans/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/multisrc/overrides/heancms/omegascans/res/mipmap-xxxhdpi/ic_launcher.png b/multisrc/overrides/heancms/omegascans/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..5f1d4161d Binary files /dev/null and b/multisrc/overrides/heancms/omegascans/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/multisrc/overrides/heancms/omegascans/res/web_hi_res_512.png b/multisrc/overrides/heancms/omegascans/res/web_hi_res_512.png new file mode 100644 index 000000000..22189cf74 Binary files /dev/null and b/multisrc/overrides/heancms/omegascans/res/web_hi_res_512.png differ diff --git a/multisrc/overrides/heancms/omegascans/src/OmegaScans.kt b/multisrc/overrides/heancms/omegascans/src/OmegaScans.kt new file mode 100644 index 000000000..7fa97375b --- /dev/null +++ b/multisrc/overrides/heancms/omegascans/src/OmegaScans.kt @@ -0,0 +1,42 @@ +package eu.kanade.tachiyomi.extension.en.omegascans + +import eu.kanade.tachiyomi.multisrc.heancms.HeanCms +import eu.kanade.tachiyomi.network.interceptor.rateLimitHost +import eu.kanade.tachiyomi.source.model.MangasPage +import eu.kanade.tachiyomi.source.model.SManga +import okhttp3.HttpUrl.Companion.toHttpUrl +import okhttp3.OkHttpClient +import okhttp3.Response + +class OmegaScans : HeanCms("Omega Scans", "https://omegascans.org", "en") { + override val client: OkHttpClient = super.client.newBuilder() + .rateLimitHost(apiUrl.toHttpUrl(), 1) + .build() + + // Site changed from Mangathemesia to HeanCms. + override val versionId = 2 + override val fetchAllTitles = false + override val coverPath = "" + + override fun popularMangaParse(response: Response): MangasPage { + return super.popularMangaParse(response).apply { + this.mangas.forEach { + it.thumbnail_url = it.thumbnail_url?.substringAfter("$apiUrl/") + } + } + } + + override fun searchMangaParse(response: Response): MangasPage { + return super.searchMangaParse(response).apply { + this.mangas.forEach { + it.thumbnail_url = it.thumbnail_url?.substringAfter("$apiUrl/") + } + } + } + + override fun mangaDetailsParse(response: Response): SManga { + return super.mangaDetailsParse(response).apply { + thumbnail_url = thumbnail_url?.substringAfter("$apiUrl/") + } + } +} diff --git a/multisrc/overrides/mangathemesia/omegascans/res/mipmap-hdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/omegascans/res/mipmap-hdpi/ic_launcher.png deleted file mode 100644 index e9ee8dc4b..000000000 Binary files a/multisrc/overrides/mangathemesia/omegascans/res/mipmap-hdpi/ic_launcher.png and /dev/null differ diff --git a/multisrc/overrides/mangathemesia/omegascans/res/mipmap-mdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/omegascans/res/mipmap-mdpi/ic_launcher.png deleted file mode 100644 index 40f709379..000000000 Binary files a/multisrc/overrides/mangathemesia/omegascans/res/mipmap-mdpi/ic_launcher.png and /dev/null differ diff --git a/multisrc/overrides/mangathemesia/omegascans/res/mipmap-xhdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/omegascans/res/mipmap-xhdpi/ic_launcher.png deleted file mode 100644 index 4a33659da..000000000 Binary files a/multisrc/overrides/mangathemesia/omegascans/res/mipmap-xhdpi/ic_launcher.png and /dev/null differ diff --git a/multisrc/overrides/mangathemesia/omegascans/res/mipmap-xxhdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/omegascans/res/mipmap-xxhdpi/ic_launcher.png deleted file mode 100644 index 913902443..000000000 Binary files a/multisrc/overrides/mangathemesia/omegascans/res/mipmap-xxhdpi/ic_launcher.png and /dev/null differ diff --git a/multisrc/overrides/mangathemesia/omegascans/res/mipmap-xxxhdpi/ic_launcher.png b/multisrc/overrides/mangathemesia/omegascans/res/mipmap-xxxhdpi/ic_launcher.png deleted file mode 100644 index cb9aa864e..000000000 Binary files a/multisrc/overrides/mangathemesia/omegascans/res/mipmap-xxxhdpi/ic_launcher.png and /dev/null differ diff --git a/multisrc/overrides/mangathemesia/omegascans/res/web_hi_res_512.png b/multisrc/overrides/mangathemesia/omegascans/res/web_hi_res_512.png deleted file mode 100644 index 63cea5530..000000000 Binary files a/multisrc/overrides/mangathemesia/omegascans/res/web_hi_res_512.png and /dev/null differ diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsGenerator.kt index b5153f9f2..9060d84e4 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/heancms/HeanCmsGenerator.kt @@ -12,6 +12,7 @@ class HeanCmsGenerator : ThemeSourceGenerator { override val baseVersionCode: Int = 10 override val sources = listOf( + SingleLang("Omega Scans", "https://omegascans.org", "en", isNsfw = true, overrideVersionCode = 16), SingleLang("Reaper Scans", "https://reaperscans.net", "pt-BR", overrideVersionCode = 35), SingleLang("YugenMangas", "https://yugenmangas.com", "es", isNsfw = true, overrideVersionCode = 1), ) 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 61b5c56f5..b3bb9ba3d 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 @@ -89,7 +89,6 @@ class MangaThemesiaGenerator : ThemeSourceGenerator { SingleLang("Ngomik", "https://ngomik.net", "id", overrideVersionCode = 2), SingleLang("NIGHT SCANS", "https://nightscans.org", "en", isNsfw = true, className = "NightScans", overrideVersionCode = 1), SingleLang("Nocturnal Scans", "https://nocturnalscans.com", "en", overrideVersionCode = 1), - SingleLang("Omega Scans", "https://omegascans.org", "en", isNsfw = true), SingleLang("Origami Orpheans", "https://origami-orpheans.com.br", "pt-BR", overrideVersionCode = 9), SingleLang("Ozul Scans", "https://ozulscans.com", "ar"), SingleLang("Patatescans", "https://patatescans.com", "fr", isNsfw = true, overrideVersionCode = 2),