From 0bdce39def6c81faa3119b6359aba3d598c86c22 Mon Sep 17 00:00:00 2001 From: devi <70220050+davvarrr@users.noreply.github.com> Date: Mon, 24 Jul 2023 08:50:40 +0200 Subject: [PATCH] Update src/main/kotlin/org/koitharu/kotatsu/parsers/site/vi/LxManga.kt Co-authored-by: Koitharu --- src/main/kotlin/org/koitharu/kotatsu/parsers/site/vi/LxManga.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/vi/LxManga.kt b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/vi/LxManga.kt index 2224148c..d42eb73d 100644 --- a/src/main/kotlin/org/koitharu/kotatsu/parsers/site/vi/LxManga.kt +++ b/src/main/kotlin/org/koitharu/kotatsu/parsers/site/vi/LxManga.kt @@ -75,7 +75,7 @@ internal class LxManga(context: MangaLoaderContext) : PagedMangaParser(context, return doc.select("div.grid div.manga-vertical") .map { div -> val href = div.selectFirstOrThrow("a").attr("href") - val img = div.select(".cover").first()!!.attr("style").substringAfter("url('").substringBefore("')") + val img = div.selectFirstOrThrow(".cover").attr("style").substringAfter("url('").substringBefore("')") Manga( id = generateUid(href), title = div.selectFirstOrThrow("a.text-ellipsis").text(),