mirror of
https://github.com/keiyoushi/extensions-source.git
synced 2024-11-22 10:22:47 +01:00
parent
3feb355beb
commit
d6953b899e
@ -1,7 +1,7 @@
|
||||
ext {
|
||||
extName = 'Ikigai Mangas'
|
||||
extClass = '.IkigaiMangas'
|
||||
extVersionCode = 3
|
||||
extVersionCode = 4
|
||||
isNsfw = true
|
||||
}
|
||||
|
||||
|
@ -102,18 +102,22 @@ class IkigaiMangas : HttpSource() {
|
||||
return MangasPage(mangaList, result.hasNextPage())
|
||||
}
|
||||
|
||||
override fun mangaDetailsParse(response: Response): SManga {
|
||||
val slug = response.request.url
|
||||
.toString()
|
||||
override fun getMangaUrl(manga: SManga) = baseUrl + manga.url.substringBefore("#")
|
||||
|
||||
override fun mangaDetailsRequest(manga: SManga): Request {
|
||||
val slug = manga.url
|
||||
.substringAfter("/series/comic-")
|
||||
.substringBefore("#")
|
||||
val apiUrl = "$apiBaseUrl/api/swf/series/$slug".toHttpUrl()
|
||||
val newResponse = client.newCall(GET(url = apiUrl, headers = headers)).execute()
|
||||
val result = json.decodeFromString<PayloadSeriesDetailsDto>(newResponse.body.string())
|
||||
|
||||
return GET("$apiBaseUrl/api/swf/series/$slug", headers)
|
||||
}
|
||||
|
||||
override fun mangaDetailsParse(response: Response): SManga {
|
||||
val result = json.decodeFromString<PayloadSeriesDetailsDto>(response.body.string())
|
||||
return result.series.toSMangaDetails()
|
||||
}
|
||||
|
||||
override fun getChapterUrl(chapter: SChapter) = baseUrl + chapter.url
|
||||
override fun getChapterUrl(chapter: SChapter) = baseUrl + chapter.url.substringBefore("#")
|
||||
|
||||
override fun chapterListRequest(manga: SManga): Request {
|
||||
val slug = manga.url.substringAfter("/series/comic-").substringBefore("#")
|
||||
|
Loading…
Reference in New Issue
Block a user