From cdb8de9fbf9b490d41aa78a7f6d709cf1d29aa60 Mon Sep 17 00:00:00 2001 From: KenjieDec <65448230+KenjieDec@users.noreply.github.com> Date: Wed, 7 Aug 2024 10:35:05 +0700 Subject: [PATCH] Spyfakku | Fixed Some Images Not Loading (#4444) * Fixed Some Images Not Loading - Also Fixed Manga & Chapter Webview URL * Update extVersionCode * Fix? * Little Change - The website itself already provides cased tags --- src/en/spyfakku/build.gradle | 2 +- .../eu/kanade/tachiyomi/extension/en/spyfakku/SpyFakku.kt | 8 +++----- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/en/spyfakku/build.gradle b/src/en/spyfakku/build.gradle index 2a76a52c4..1579d0650 100644 --- a/src/en/spyfakku/build.gradle +++ b/src/en/spyfakku/build.gradle @@ -1,7 +1,7 @@ ext { extName = 'SpyFakku' extClass = '.SpyFakku' - extVersionCode = 4 + extVersionCode = 5 isNsfw = true } diff --git a/src/en/spyfakku/src/eu/kanade/tachiyomi/extension/en/spyfakku/SpyFakku.kt b/src/en/spyfakku/src/eu/kanade/tachiyomi/extension/en/spyfakku/SpyFakku.kt index 3d106dfdc..89cfd3eab 100644 --- a/src/en/spyfakku/src/eu/kanade/tachiyomi/extension/en/spyfakku/SpyFakku.kt +++ b/src/en/spyfakku/src/eu/kanade/tachiyomi/extension/en/spyfakku/SpyFakku.kt @@ -89,9 +89,7 @@ class SpyFakku : HttpSource() { } } - fun JsonElement.toName(): String = this.jsonPrimitive.content.split(" ").joinToString(" ") { - it.lowercase().replaceFirstChar { char -> char.titlecase() } - } + fun JsonElement.toName(): String = this.jsonPrimitive.content val hentaiIndexes = json.decodeFromJsonElement(data[0]) val id = data[hentaiIndexes.id].jsonPrimitive.int @@ -233,7 +231,7 @@ class SpyFakku : HttpSource() { return this.ifEmpty { null } } - override fun getMangaUrl(manga: SManga) = baseUrl + manga.url + override fun getMangaUrl(manga: SManga) = baseUrl + manga.url.removeSuffix(baseApiEnd) override fun chapterListRequest(manga: SManga) = mangaDetailsRequest(manga) @@ -253,7 +251,7 @@ class SpyFakku : HttpSource() { ) } - override fun getChapterUrl(chapter: SChapter) = baseUrl + chapter.url + override fun getChapterUrl(chapter: SChapter) = baseUrl + chapter.url.removeSuffix(baseApiEnd) override fun pageListParse(response: Response): List { val hentai = getManga(response.parseAs().data)