mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-22 02:12:42 +01:00
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:
parent
1d97f337a5
commit
e32bf4177c
@ -1,7 +1,7 @@
|
|||||||
ext {
|
ext {
|
||||||
extName = 'SpyFakku'
|
extName = 'SpyFakku'
|
||||||
extClass = '.SpyFakku'
|
extClass = '.SpyFakku'
|
||||||
extVersionCode = 4
|
extVersionCode = 5
|
||||||
isNsfw = true
|
isNsfw = true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -89,9 +89,7 @@ class SpyFakku : HttpSource() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun JsonElement.toName(): String = this.jsonPrimitive.content.split(" ").joinToString(" ") {
|
fun JsonElement.toName(): String = this.jsonPrimitive.content
|
||||||
it.lowercase().replaceFirstChar { char -> char.titlecase() }
|
|
||||||
}
|
|
||||||
|
|
||||||
val hentaiIndexes = json.decodeFromJsonElement<HentaiIndexes>(data[0])
|
val hentaiIndexes = json.decodeFromJsonElement<HentaiIndexes>(data[0])
|
||||||
val id = data[hentaiIndexes.id].jsonPrimitive.int
|
val id = data[hentaiIndexes.id].jsonPrimitive.int
|
||||||
@ -233,7 +231,7 @@ class SpyFakku : HttpSource() {
|
|||||||
return this.ifEmpty { null }
|
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)
|
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> {
|
override fun pageListParse(response: Response): List<Page> {
|
||||||
val hentai = getManga(response.parseAs<HentaiLib>().data)
|
val hentai = getManga(response.parseAs<HentaiLib>().data)
|
||||||
|
Loading…
Reference in New Issue
Block a user