diff --git a/multisrc/overrides/heancms/gloriousscan/res/mipmap-hdpi/ic_launcher.png b/multisrc/overrides/heancms/gloriousscan/res/mipmap-hdpi/ic_launcher.png new file mode 100644 index 000000000..62aca8dbd Binary files /dev/null and b/multisrc/overrides/heancms/gloriousscan/res/mipmap-hdpi/ic_launcher.png differ diff --git a/multisrc/overrides/heancms/gloriousscan/res/mipmap-mdpi/ic_launcher.png b/multisrc/overrides/heancms/gloriousscan/res/mipmap-mdpi/ic_launcher.png new file mode 100644 index 000000000..a6d629c3f Binary files /dev/null and b/multisrc/overrides/heancms/gloriousscan/res/mipmap-mdpi/ic_launcher.png differ diff --git a/multisrc/overrides/heancms/gloriousscan/res/mipmap-xhdpi/ic_launcher.png b/multisrc/overrides/heancms/gloriousscan/res/mipmap-xhdpi/ic_launcher.png new file mode 100644 index 000000000..1a19c57d9 Binary files /dev/null and b/multisrc/overrides/heancms/gloriousscan/res/mipmap-xhdpi/ic_launcher.png differ diff --git a/multisrc/overrides/heancms/gloriousscan/res/mipmap-xxhdpi/ic_launcher.png b/multisrc/overrides/heancms/gloriousscan/res/mipmap-xxhdpi/ic_launcher.png new file mode 100644 index 000000000..1ef342d22 Binary files /dev/null and b/multisrc/overrides/heancms/gloriousscan/res/mipmap-xxhdpi/ic_launcher.png differ diff --git a/multisrc/overrides/heancms/gloriousscan/res/mipmap-xxxhdpi/ic_launcher.png b/multisrc/overrides/heancms/gloriousscan/res/mipmap-xxxhdpi/ic_launcher.png new file mode 100644 index 000000000..e3e654ece Binary files /dev/null and b/multisrc/overrides/heancms/gloriousscan/res/mipmap-xxxhdpi/ic_launcher.png differ diff --git a/multisrc/overrides/heancms/gloriousscan/res/web_hi_res_512.png b/multisrc/overrides/heancms/gloriousscan/res/web_hi_res_512.png new file mode 100644 index 000000000..14d45a444 Binary files /dev/null and b/multisrc/overrides/heancms/gloriousscan/res/web_hi_res_512.png differ diff --git a/multisrc/overrides/heancms/gloriousscan/src/GloriousScan.kt b/multisrc/overrides/heancms/gloriousscan/src/GloriousScan.kt new file mode 100644 index 000000000..90f764ab6 --- /dev/null +++ b/multisrc/overrides/heancms/gloriousscan/src/GloriousScan.kt @@ -0,0 +1,30 @@ +package eu.kanade.tachiyomi.extension.pt.gloriousscan + +import eu.kanade.tachiyomi.multisrc.heancms.HeanCms +import eu.kanade.tachiyomi.network.interceptor.rateLimitHost +import okhttp3.HttpUrl.Companion.toHttpUrl +import okhttp3.OkHttpClient +import java.text.SimpleDateFormat +import java.util.TimeZone + +class GloriousScan : HeanCms( + "Glorious Scan", + "https://gloriousscan.com", + "pt-BR", +) { + + override val client: OkHttpClient = super.client.newBuilder() + .rateLimitHost(apiUrl.toHttpUrl(), 1, 2) + .build() + + // Site changed from Madara to HeanCms. + override val versionId = 2 + + override val coverPath = "" + + override val dateFormat: SimpleDateFormat = super.dateFormat.apply { + timeZone = TimeZone.getTimeZone("GMT+02:00") + } + + override val fetchAllTitles = false +} diff --git a/multisrc/overrides/madara/gloriousscan/src/GloriousScan.kt b/multisrc/overrides/madara/gloriousscan/src/GloriousScan.kt deleted file mode 100644 index ab0ea7014..000000000 --- a/multisrc/overrides/madara/gloriousscan/src/GloriousScan.kt +++ /dev/null @@ -1,22 +0,0 @@ -package eu.kanade.tachiyomi.extension.pt.gloriousscan - -import eu.kanade.tachiyomi.multisrc.madara.Madara -import eu.kanade.tachiyomi.network.interceptor.rateLimit -import okhttp3.OkHttpClient -import java.text.SimpleDateFormat -import java.util.Locale -import java.util.concurrent.TimeUnit - -class GloriousScan : Madara( - "Glorious Scan", - "https://gloriousscan.com", - "pt-BR", - SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR")), -) { - - override val client: OkHttpClient = super.client.newBuilder() - .rateLimit(1, 2, TimeUnit.SECONDS) - .build() - - override val useNewChapterEndpoint = true -} 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 c49f263f7..c5a36eecc 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 = 13 override val sources = listOf( + SingleLang("Glorious Scan", "https://gloriousscan.com", "pt-BR", overrideVersionCode = 17), SingleLang("Omega Scans", "https://omegascans.org", "en", isNsfw = true, overrideVersionCode = 17), 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/madara/MadaraGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt index e072a8d24..6fdcb4dfc 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/madara/MadaraGenerator.kt @@ -113,7 +113,6 @@ class MadaraGenerator : ThemeSourceGenerator { SingleLang("GeassToon", "https://geasstoon.com", "tr"), SingleLang("Gekkou Hentai", "https://hentai.gekkouscans.com.br", "pt-BR", isNsfw = true), SingleLang("Gekkou Scans", "https://gekkou.com.br", "pt-BR", isNsfw = true, pkgName = "gekkouscan"), - SingleLang("Glorious Scan", "https://gloriousscan.com", "pt-BR"), SingleLang("Glory Manga", "https://glorymanga.com", "tr"), SingleLang("Goof Fansub", "https://gooffansub.com", "pt-BR", isNsfw = true), SingleLang("GuncelManga", "https://guncelmanga.com", "tr", overrideVersionCode = 1),