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
This commit is contained in:
KenjieDec 2024-08-07 10:35:05 +07:00 committed by GitHub
parent 1d97f337a5
commit e32bf4177c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 6 deletions

View File

@ -1,7 +1,7 @@
ext {
extName = 'SpyFakku'
extClass = '.SpyFakku'
extVersionCode = 4
extVersionCode = 5
isNsfw = true
}

View File

@ -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<HentaiIndexes>(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<Page> {
val hentai = getManga(response.parseAs<HentaiLib>().data)