Merge pull request #655 from NagaYZ/fix-xoxocomics

fix #652
master
Koitharu 2 years ago committed by GitHub
commit 9821e93d25
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -175,8 +175,8 @@ internal class XoxoComics(context: MangaLoaderContext) :
override suspend fun getPages(chapter: MangaChapter): List<MangaPage> { override suspend fun getPages(chapter: MangaChapter): List<MangaPage> {
val fullUrl = chapter.url.toAbsoluteUrl(domain) + "/all" val fullUrl = chapter.url.toAbsoluteUrl(domain) + "/all"
val doc = webClient.httpGet(fullUrl).parseHtml() val doc = webClient.httpGet(fullUrl).parseHtml()
return doc.select(selectPage).map { url -> return doc.select(selectPage).mapNotNull{ url ->
val img = url.src()?.toRelativeUrl(domain) ?: url.parseFailed("Image src not found") val img = url.src()?.toRelativeUrl(domain) ?: return@mapNotNull null
MangaPage( MangaPage(
id = generateUid(img), id = generateUid(img),
url = img, url = img,

Loading…
Cancel
Save