From ee098a3ea0113e4c79d7f3bc986ecdf095251643 Mon Sep 17 00:00:00 2001 From: Johannes Joens <34899572+jopejoe1@users.noreply.github.com> Date: Thu, 22 Apr 2021 18:44:49 +1200 Subject: [PATCH] Removed sources that are down (#6664) * Removed sites that are down * Delete multisrc/overrides/fmreader/eighteenlhplus/src directory * Delete multisrc/overrides/fmreader/hanascanrawqq/src directory * Update FoolSlideGenerator.kt --- .../eighteenlhplus/src/EighteenLHPlus.kt | 22 ------------------- .../hanascanrawqq/src/HanaScanRawQQ.kt | 12 ---------- .../multisrc/fmreader/FMReaderGenerator.kt | 7 +++--- .../multisrc/foolslide/FoolSlideGenerator.kt | 3 ++- 4 files changed, 6 insertions(+), 38 deletions(-) delete mode 100644 multisrc/overrides/fmreader/eighteenlhplus/src/EighteenLHPlus.kt delete mode 100644 multisrc/overrides/fmreader/hanascanrawqq/src/HanaScanRawQQ.kt diff --git a/multisrc/overrides/fmreader/eighteenlhplus/src/EighteenLHPlus.kt b/multisrc/overrides/fmreader/eighteenlhplus/src/EighteenLHPlus.kt deleted file mode 100644 index b18f982c6..000000000 --- a/multisrc/overrides/fmreader/eighteenlhplus/src/EighteenLHPlus.kt +++ /dev/null @@ -1,22 +0,0 @@ -package eu.kanade.tachiyomi.extension.en.eighteenlhplus - -import eu.kanade.tachiyomi.multisrc.fmreader.FMReader -import okhttp3.OkHttpClient - -class EighteenLHPlus : FMReader("18LHPlus", "https://18lhplus.com", "en") { - override val client: OkHttpClient = super.client.newBuilder() - .addInterceptor { chain -> - val originalRequest = chain.request() - chain.proceed(originalRequest).let { response -> - if (response.code() == 403 && originalRequest.url().host().contains("mkklcdn")) { - response.close() - chain.proceed(originalRequest.newBuilder().removeHeader("Referer").addHeader("Referer", "https://manganelo.com").build()) - } else { - response - } - } - } - .build() - override fun popularMangaNextPageSelector() = "div.col-lg-8 div.btn-group:first-of-type" - override fun getGenreList() = getAdultGenreList() -} diff --git a/multisrc/overrides/fmreader/hanascanrawqq/src/HanaScanRawQQ.kt b/multisrc/overrides/fmreader/hanascanrawqq/src/HanaScanRawQQ.kt deleted file mode 100644 index 9abe4bb73..000000000 --- a/multisrc/overrides/fmreader/hanascanrawqq/src/HanaScanRawQQ.kt +++ /dev/null @@ -1,12 +0,0 @@ -package eu.kanade.tachiyomi.extension.ja.hanascanrawqq - -import eu.kanade.tachiyomi.multisrc.fmreader.FMReader -import eu.kanade.tachiyomi.network.GET -import eu.kanade.tachiyomi.source.model.Page -import okhttp3.Request - -class HanaScanRawQQ : FMReader("HanaScan (RawQQ)", "https://hanascan.com", "ja") { - override fun popularMangaNextPageSelector() = "div.col-md-8 button" - // Referer needs to be chapter URL - override fun imageRequest(page: Page): Request = GET(page.imageUrl!!, headersBuilder().set("Referer", page.url).build()) -} \ No newline at end of file diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fmreader/FMReaderGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fmreader/FMReaderGenerator.kt index 1f2f029cd..3c412dff0 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fmreader/FMReaderGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/fmreader/FMReaderGenerator.kt @@ -16,9 +16,7 @@ class FMReaderGenerator : ThemeSourceGenerator { * most likely the fix is to override popularMangaNextPageSelector() */ override val sources = listOf( - SingleLang("18LHPlus", "https://18lhplus.com", "en", className = "EighteenLHPlus"), - SingleLang("Epik Manga", "https://www.epikmanga.com", "tr"), - SingleLang("HanaScan (RawQQ)", "https://hanascan.com", "ja", className = "HanaScanRawQQ"), + SingleLang("Epik Manga", "https://www.epikmanga.com", "tr"), SingleLang("HeroScan", "https://heroscan.com", "en"), SingleLang("KissLove", "https://kissaway.net", "ja"), SingleLang("LHTranslation", "https://lhtranslation.net", "en", overrideVersionCode = 1), @@ -30,6 +28,9 @@ class FMReaderGenerator : ThemeSourceGenerator { SingleLang("RawLH", "https://lovehug.net", "ja"), SingleLang("Say Truyen", "https://saytruyen.com", "vi"), SingleLang("KSGroupScans", "https://ksgroupscans.com", "en"), + // Sites that went down + //SingleLang("18LHPlus", "https://18lhplus.com", "en", className = "EighteenLHPlus"), + //SingleLang("HanaScan (RawQQ)", "https://hanascan.com", "ja", className = "HanaScanRawQQ"), ) companion object { diff --git a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/foolslide/FoolSlideGenerator.kt b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/foolslide/FoolSlideGenerator.kt index aa15c2750..aef3e06bb 100644 --- a/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/foolslide/FoolSlideGenerator.kt +++ b/multisrc/src/main/java/eu/kanade/tachiyomi/multisrc/foolslide/FoolSlideGenerator.kt @@ -16,7 +16,6 @@ class FoolSlideGenerator : ThemeSourceGenerator { SingleLang("The Cat Scans", "https://reader2.thecatscans.com/", "en"), SingleLang("Silent Sky", "https://reader.silentsky-scans.net", "en"), SingleLang("Death Toll Scans", "https://reader.deathtollscans.net", "en"), - SingleLang("One Time Scans", "https://reader.otscans.com", "en"), SingleLang("MangaScouts", "http://onlinereader.mangascouts.org", "de"), SingleLang("Lilyreader", "https://manga.smuglo.li", "en"), SingleLang("Evil Flowers", "https://reader.evilflowers.com", "en"), @@ -47,6 +46,8 @@ class FoolSlideGenerator : ThemeSourceGenerator { SingleLang("Mabushimajo", "http://mabushimajo.com", "tr"), SingleLang("Hyakuro", "https://hyakuro.com/reader", "en"), SingleLang("Le Cercle du Scan", "https://lel.lecercleduscan.com", "fr") + //Sites that are down + //SingleLang("One Time Scans", "https://reader.otscans.com", "en"), ) companion object {