From 0741c20a9f1fb1fdc85a5a6d3fa8f6e425db4604 Mon Sep 17 00:00:00 2001 From: Julien Papasian Date: Thu, 8 Apr 2021 12:26:50 +0100 Subject: [PATCH] MangaKawaii: Fix #6360 (#6467) --- src/fr/mangakawaii/build.gradle | 2 +- .../tachiyomi/extension/fr/mangakawaii/MangaKawaii.kt | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/fr/mangakawaii/build.gradle b/src/fr/mangakawaii/build.gradle index 324a3755e..68d6a4f41 100644 --- a/src/fr/mangakawaii/build.gradle +++ b/src/fr/mangakawaii/build.gradle @@ -5,7 +5,7 @@ ext { extName = 'Mangakawaii' pkgNameSuffix = 'fr.mangakawaii' extClass = '.MangaKawaii' - extVersionCode = 27 + extVersionCode = 28 libVersion = '1.2' } diff --git a/src/fr/mangakawaii/src/eu/kanade/tachiyomi/extension/fr/mangakawaii/MangaKawaii.kt b/src/fr/mangakawaii/src/eu/kanade/tachiyomi/extension/fr/mangakawaii/MangaKawaii.kt index 49a407b8a..61dcc25aa 100644 --- a/src/fr/mangakawaii/src/eu/kanade/tachiyomi/extension/fr/mangakawaii/MangaKawaii.kt +++ b/src/fr/mangakawaii/src/eu/kanade/tachiyomi/extension/fr/mangakawaii/MangaKawaii.kt @@ -137,8 +137,12 @@ class MangaKawaii : ParsedHttpSource() { val elements = document.select(selectorDecoded) val pages = mutableListOf() + var j = 0 for (i in 0 until elements.count()) { - pages.add(Page(i, document.location(), elements[i].attr("src").trim())) + if (elements[i].attr("src").trim() != "") { + pages.add(Page(j, document.location(), elements[i].attr("src").trim())) + ++j + } } return pages }