From a1cf20863a6f4ed6a6bd8009bcf4fe27abc3ecdd Mon Sep 17 00:00:00 2001 From: Alessandro Jean Date: Thu, 20 Jan 2022 07:01:27 -0300 Subject: [PATCH] Remove two dead sources from WpMangaStream (#10516) * Remove a dead source from WpMangaStream. * Remove another dead source from WpMangaStream. --- .../geasshentai/src/GeassHentai.kt | 25 ------------------- .../wpmangastream/hakaiscan/src/HakaiScan.kt | 22 ---------------- .../wpmangastream/WPMangaStreamGenerator.kt | 2 -- 3 files changed, 49 deletions(-) delete mode 100644 multisrc/overrides/wpmangastream/geasshentai/src/GeassHentai.kt delete mode 100644 multisrc/overrides/wpmangastream/hakaiscan/src/HakaiScan.kt diff --git a/multisrc/overrides/wpmangastream/geasshentai/src/GeassHentai.kt b/multisrc/overrides/wpmangastream/geasshentai/src/GeassHentai.kt deleted file mode 100644 index 46c2943d9..000000000 --- a/multisrc/overrides/wpmangastream/geasshentai/src/GeassHentai.kt +++ /dev/null @@ -1,25 +0,0 @@ -package eu.kanade.tachiyomi.extension.pt.geasshentai - -import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor -import eu.kanade.tachiyomi.multisrc.wpmangastream.WPMangaStream -import okhttp3.OkHttpClient -import java.text.SimpleDateFormat -import java.util.Locale -import java.util.concurrent.TimeUnit - -class GeassHentai : WPMangaStream( - "Geass Hentai", - "https://geassscan.xyz", - "pt-BR", - dateFormat = SimpleDateFormat("MMMMM d, yyyy", Locale("pt", "BR")) -) { - - // Source changed from Madara to WpMangaStream. - override val versionId: Int = 2 - - override val client: OkHttpClient = super.client.newBuilder() - .addInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS)) - .build() - - override val altName: String = "Nome alternativo: " -} diff --git a/multisrc/overrides/wpmangastream/hakaiscan/src/HakaiScan.kt b/multisrc/overrides/wpmangastream/hakaiscan/src/HakaiScan.kt deleted file mode 100644 index 3a1bc0f5a..000000000 --- a/multisrc/overrides/wpmangastream/hakaiscan/src/HakaiScan.kt +++ /dev/null @@ -1,22 +0,0 @@ -package eu.kanade.tachiyomi.extension.pt.hakaiscan - -import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor -import eu.kanade.tachiyomi.multisrc.wpmangastream.WPMangaStream -import okhttp3.OkHttpClient -import java.text.SimpleDateFormat -import java.util.Locale -import java.util.concurrent.TimeUnit - -class HakaiScan : WPMangaStream( - "Hakai Scan", - "http://hakaiscan.xyz", - "pt-BR", - SimpleDateFormat("MMMMM dd, yyyy", Locale("pt", "BR")) -) { - - override val client: OkHttpClient = super.client.newBuilder() - .addInterceptor(RateLimitInterceptor(1, 2, TimeUnit.SECONDS)) - .build() - - override val altName: String = "Nome alternativo: " -} diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt index b2297558b..db669c49d 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/wpmangastream/WPMangaStreamGenerator.kt @@ -48,12 +48,10 @@ class WPMangaStreamGenerator : ThemeSourceGenerator { SingleLang("Phoenix Fansub", "https://phoenixfansub.com", "es", overrideVersionCode = 2), SingleLang("Imagine Scan", "https://imaginescan.com.br", "pt-BR", isNsfw = true, overrideVersionCode = 1), SingleLang("Vapo Scan", "https://vaposcans.com", "pt-BR", overrideVersionCode = 3), - SingleLang("Hakai Scan", "http://hakaiscan.xyz", "pt-BR", isNsfw = true), SingleLang("Snudae Scans", "https://snudaescans.com", "en", isNsfw = true, className = "BatotoScans", overrideVersionCode = 1), SingleLang("Random Scans", "https://randomscans.xyz", "en"), SingleLang("Phantom Scans", "https://phantomscans.com", "en", overrideVersionCode = 1), SingleLang("Omega Scans", "https://omegascans.org", "en", isNsfw = true), - SingleLang("Geass Hentai", "https://geassscan.xyz", "pt-BR", isNsfw = true, overrideVersionCode = 2), SingleLang("TukangKomik", "https://tukangkomik.com", "id"), SingleLang("Komiksay", "https://komiksay.com", "id"), )