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)