This commit is contained in:
Naga
2024-03-22 18:57:49 +01:00
parent ab679bccc6
commit 6c16c9c55f

View File

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