remove need for refreshing chapter list

pull/267/head
AwkwardPeak7 3 years ago
parent 2ce5f2563a
commit 1cec2cc187
No known key found for this signature in database
GPG Key ID: C3C1A2A38C3D37D6

@ -135,9 +135,7 @@ internal class KskMoe(context: MangaLoaderContext) : PagedMangaParser(context, M
id = generateUid(manga.id), id = generateUid(manga.id),
name = manga.title, name = manga.title,
number = 1, number = 1,
url = manga.url url = manga.url,
.replace("/view/", "/read/")
.let { "$it/1" },
scanlator = null, scanlator = null,
uploadDate = date.tryParse(doc.selectFirstOrThrow("time.updated").text()), uploadDate = date.tryParse(doc.selectFirstOrThrow("time.updated").text()),
branch = null, branch = null,
@ -148,7 +146,10 @@ internal class KskMoe(context: MangaLoaderContext) : PagedMangaParser(context, M
} }
override suspend fun getPages(chapter: MangaChapter): List<MangaPage> { override suspend fun getPages(chapter: MangaChapter): List<MangaPage> {
val fullUrl = chapter.url.toAbsoluteUrl(domain) val fullUrl = chapter.url
.replace("/view/", "/read/")
.let { "$it/1" }
.toAbsoluteUrl(domain)
val document = webClient.httpGet(fullUrl).parseHtml() val document = webClient.httpGet(fullUrl).parseHtml()
val id = fullUrl val id = fullUrl

Loading…
Cancel
Save