From 89693c4209cc49af17a32a0b453e06e99926f73c Mon Sep 17 00:00:00 2001 From: kiriya-aoi <34067059+kiriya-aoi@users.noreply.github.com> Date: Sat, 26 Sep 2020 23:41:46 -0400 Subject: [PATCH] Remove Jaimini's Box (#4440) Remove Jaimini's Box --- src/all/foolslide/build.gradle | 2 +- .../all/foolslide/FoolSlideFactory.kt | 21 ------------------- 2 files changed, 1 insertion(+), 22 deletions(-) diff --git a/src/all/foolslide/build.gradle b/src/all/foolslide/build.gradle index b58b4ca81..e42a168dc 100644 --- a/src/all/foolslide/build.gradle +++ b/src/all/foolslide/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'FoolSlide (multiple sources)' pkgNameSuffix = 'all.foolslide' extClass = '.FoolSlideFactory' - extVersionCode = 53 + extVersionCode = 54 libVersion = '1.2' containsNsfw = true } diff --git a/src/all/foolslide/src/eu/kanade/tachiyomi/extension/all/foolslide/FoolSlideFactory.kt b/src/all/foolslide/src/eu/kanade/tachiyomi/extension/all/foolslide/FoolSlideFactory.kt index 40f6948c9..43a1a5541 100644 --- a/src/all/foolslide/src/eu/kanade/tachiyomi/extension/all/foolslide/FoolSlideFactory.kt +++ b/src/all/foolslide/src/eu/kanade/tachiyomi/extension/all/foolslide/FoolSlideFactory.kt @@ -27,7 +27,6 @@ import uy.kohesive.injekt.api.get class FoolSlideFactory : SourceFactory { override fun createSources(): List = listOf( - JaiminisBox(), SenseScans(), KireiCake(), SilentSky(), @@ -67,26 +66,6 @@ class FoolSlideFactory : SourceFactory { ) } -class JaiminisBox : FoolSlide("Jaimini's Box", "https://jaiminisbox.com", "en", "/reader") { - private val slugRegex = "(?:/read/)([\\w\\d-]+?)(?:/)".toRegex() - override fun pageListRequest(chapter: SChapter): Request { - val (slug) = slugRegex.find(chapter.url)!!.destructured - var (major, minor) = chapter.chapter_number.toString().split(".") - if (major == "-1") major = "0" // Some oneshots don't have a chapter - return GET("$baseUrl$urlModifier/api/reader/chapter?comic_stub=$slug&chapter=$major&subchapter=$minor") - } - - override fun pageListParse(document: Document): List { - val pagesJson = JSONObject(document.body().ownText()) - val json = JsonParser().parse(pagesJson.getString("pages")).asJsonArray - val pages = ArrayList() - json.forEach { - pages.add(Page(pages.size, "", JsonParser().parse(it.toString())["url"].asString)) - } - return pages - } -} - class TheCatScans : FoolSlide("The Cat Scans", "https://reader2.thecatscans.com/", "en") class SenseScans : FoolSlide("Sense-Scans", "http://sensescans.com", "en", "/reader")