From b2ec86a2ab50eb1d2833843f569cace2248cef06 Mon Sep 17 00:00:00 2001 From: Riztard Lanthorn Date: Wed, 17 Feb 2021 00:29:18 +0700 Subject: [PATCH] fix mangaraw.org dupe class name (#5883) --- .../src/MangaRaw.kt => mangaraworg/src/MangaRawOrg.kt} | 7 +++++-- .../multisrc/wpmangastream/WPMangaStreamGenerator.kt | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) rename multisrc/overrides/wpmangastream/{mangaraw/src/MangaRaw.kt => mangaraworg/src/MangaRawOrg.kt} (92%) diff --git a/multisrc/overrides/wpmangastream/mangaraw/src/MangaRaw.kt b/multisrc/overrides/wpmangastream/mangaraworg/src/MangaRawOrg.kt similarity index 92% rename from multisrc/overrides/wpmangastream/mangaraw/src/MangaRaw.kt rename to multisrc/overrides/wpmangastream/mangaraworg/src/MangaRawOrg.kt index ffb1169cb..06e86916b 100644 --- a/multisrc/overrides/wpmangastream/mangaraw/src/MangaRaw.kt +++ b/multisrc/overrides/wpmangastream/mangaraworg/src/MangaRawOrg.kt @@ -1,4 +1,4 @@ -package eu.kanade.tachiyomi.extension.ja.mangaraw +package eu.kanade.tachiyomi.extension.ja.mangaraworg import eu.kanade.tachiyomi.multisrc.wpmangastream.WPMangaStream import eu.kanade.tachiyomi.network.GET @@ -17,7 +17,10 @@ import eu.kanade.tachiyomi.lib.ratelimit.RateLimitInterceptor import java.util.concurrent.TimeUnit import okhttp3.OkHttpClient -class MangaRaw : WPMangaStream("Manga Raw", "https://mangaraw.org", "ja") { +class MangaRawOrg : WPMangaStream("Manga Raw.org", "https://mangaraw.org", "ja") { + // Formerly "Manga Raw" from WPMangaStream + override val id = 6223520752496636410 + private val rateLimitInterceptor = RateLimitInterceptor(4) override val client: OkHttpClient = network.cloudflareClient.newBuilder() 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 9ab4148a8..36fe4ae2f 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 @@ -41,7 +41,7 @@ class WPMangaStreamGenerator : ThemeSourceGenerator { SingleLang("West Manga", "https://westmanga.info", "id"), SingleLang("Komik GO", "https://komikgo.com", "id"), SingleLang("MangaSwat", "https://mangaswat.com", "ar"), - SingleLang("Manga Raw", "https://mangaraw.org", "ja"), + SingleLang("Manga Raw.org", "https://mangaraw.org", "ja", className = "MangaRawOrg", overrideVersionCode = 1), SingleLang("Matakomik", "https://matakomik.com", "id"), SingleLang("Manga Pro Z", "https://mangaproz.com", "ar"), SingleLang("Silence Scan", "https://silencescan.net", "pt-BR"),